Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 05-03-2005, 09:20 PM Some more help
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
Okay. yes i ask alot of questions. and yes i do look on the net most of the time.

so what i am trying to do is create a small php object inside of a php page were it querys a table called sales. now what i am trying to do is for it to get the total "so" (sales orders) and the total completed and show how many orders filled and how many outstanding.

here is that exerpt

PHP Code:
<?php 
          
require_once 'dbconnect.php';
          
$sql mysql_query("SELECT * FROM sales WHERE order='$orderid' AND ordercompleted='$ordercomp'");
          
$ordercheck $sql;
          
          if (
$ordercheck 0) {
          
           
?>
i think thats how it should be set up so far

Any help appreaciated

Thanks in advance
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
 
Register now for full access!
Old 05-03-2005, 09:23 PM
leavethisplace's Avatar
Ultra Talker

Posts: 297
Trades: 0
you could have a field which says sales_status, like 0 meaning outstanding, 1 meaning completed, 2 meaning cancelled or something like that. I do this with any ticket type systems.

Then if you wanted to split them up into some sort of list you could either do two queries, or do one big one and do a loop to place completed in one array and outstanding in another and do whatever you want with them.

Did i understand what u were asking?
__________________
A lie gets halfway around the world before the truth has a chance to get its pants on. - Sir Winston Churchill

Please visit my sites:
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
leavethisplace is offline
Reply With Quote
View Public Profile
 
Old 05-04-2005, 05:57 AM
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
sort of...

thats is what i am hoping to be my end goal.

another question how would i lock table sizes.. to prevent them from resizing
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
Reply     « Reply to Some more help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.41417 seconds with 12 queries