Page 1 of 1

AARRRRRRGGGGGG!!!!!!!!

Posted: Fri Jun 13, 2003 7:33 pm
by negblo
let me start by saying that i am new to php and loving the capabilities that it is able to do :D

i have only been coding in php for about a week now. i have successfully been able to dynamically display pictures by reading the contents of a folder and displaying only the desired items.. yeah!

but now, i am working on a 'shopping cart' persay, and i am getting stuck.
i am now able to select my deptartments, and then select my catagories, and then select my products, and all is working fine. but i can not get the 'update products' part to function properly.

i have assigned my variables, and then queried my variables, and the report back from the query is good.. however, when i tell it to $VarResult = mysql_query($VarResult) or die("Product Update failed") ...it always fails and won't go to the next part because it failed.. but I don't understand why it failed...

any information will be more than greatly appriciated, not only for this but for my learning and search for a greater understanding of PHP continues.


Thanx-a-mil

negblo

Posted: Fri Jun 13, 2003 8:13 pm
by cactus
We need some error messages/code to be able to help, and the code needs to be in context. :)

Regards,

Posted: Sat Jun 14, 2003 3:36 am
by volka
might be helpful if you change $VarResult = mysql_query($VarResult) or die("Product Update failed") to

Code: Select all

$VarResult = mysql_query($VarResult) or die("Product Update failed ($VarResult): ".mysql_error());

okay

Posted: Sat Jun 14, 2003 10:00 am
by negblo
ill give that a try real quick.... ill reply again if i cant figure it out that way... thank you so much for your help


Thanx-a-mil

negblo

I Got it to work!!!

Posted: Mon Jun 16, 2003 3:40 pm
by negblo
i just want to say thank you to all of you who replied to my post.. you were all a big help.... :D





Thanx-a-mil

negblo