can check for me????

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
enefahchen
Forum Newbie
Posts: 10
Joined: Wed May 12, 2004 1:35 am

can check for me????

Post by enefahchen »

can check the coding for me , 10 Q !!!

$updatestmt="Update $Product set ProdID='$PID', categoryID='$cID', Price="$price", Description='$desc';
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Price="$price", <-- you've got double quotes here yet you use single quotes on the others.

$updatestmt="Update $Product set ProdID='$PID', categoryID='$cID', Price='$price', Description='$desc'";

..and without a WHERE something='whatever' bit on the end it will update all the rows.
EricS
Forum Contributor
Posts: 183
Joined: Thu Jul 11, 2002 12:02 am
Location: Atlanta, Ga

Unterminated double-quote

Post by EricS »

You have an unterminated double-quote. It starts before Update, but where is it supposed to end? Certainly not after Price=
Post Reply