@lostty84; Please be aware that the mysql_* extension is now deprecated as of the current version of PHP and will very likely be removed from the next 5.x version and will likely not be in PHP 6.x (when it eventually is released). You should migrate over to either the mysqli_* extension or to PDO. PDO is a better choice as it doesn’t tie you down so much to a particular database server software.
Also your 2nd and 3rd queries ony make use of the obal field, so in the first you should just list that field only as the SELECT * returns every field irrespective of which ones are actually needed.
@spacephoenix, please can you direct me to an article on how to migrate over as i have warned severally on this forum to move, and i have not been able to do that(sorry if i sound like a weak programmer)
in the code above i found that ‘if($totalprice=0)’ was supposed to be if($totalprice==0) whereby it equals not assigned to as i was doing