AARRRRRRGGGGGG!!!!!!!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
negblo
Forum Newbie
Posts: 19
Joined: Fri Jun 06, 2003 1:17 pm

AARRRRRRGGGGGG!!!!!!!!

Post 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
User avatar
cactus
Forum Regular
Posts: 343
Joined: Tue Jun 10, 2003 4:16 am
Location: UK

Post by cactus »

We need some error messages/code to be able to help, and the code needs to be in context. :)

Regards,
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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());
negblo
Forum Newbie
Posts: 19
Joined: Fri Jun 06, 2003 1:17 pm

okay

Post 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
negblo
Forum Newbie
Posts: 19
Joined: Fri Jun 06, 2003 1:17 pm

I Got it to work!!!

Post 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
Post Reply