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
|