That code errors with the following:
[Sat Oct 3 09:50:29 2009] [error] PHP Fatal error: Call to a member function Execute() on a non-object in /home/overplan/public_html/mirror/smiffy.php on line 44
??? any more suggestions? really desperate to get this to work. It makes no sense to me that when the following is used:
$query= mysql_query("UPDATE products SET products_quantity = 5 WHERE products_model = 00380");
it updates the database fine.
Yet when you replace the actual numbers with the vaiables:
$query= mysql_query("UPDATE products SET products_quantity = $ins_qty WHERE products_model = $ins_product");
it just doesnt work. as crazycucumber said, when you echo $ins_qty and $ins_product it returns all the correct vaulues, SO WHY WONT IT INSERT INTO AND COMPARE IN THE DATABASE arghhhhhhh!!??
Bookmarks