Page 1 of 1

can check for me????

Posted: Fri May 14, 2004 2:14 pm
by enefahchen
can check the coding for me , 10 Q !!!

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

Posted: Fri May 14, 2004 2:21 pm
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.

Unterminated double-quote

Posted: Fri May 14, 2004 4:33 pm
by EricS
You have an unterminated double-quote. It starts before Update, but where is it supposed to end? Certainly not after Price=