Error in updation ... cant locate
Hello all,
I got an error in updation of a table ... i tried but couldnt locate ..
the version mysql i am using is 5.1
my query is :
mysql_query("UPDATE participants SET name='$name1', desc='$desc' , pname='$pname' WHERE id = '$id'") or die(mysql_error());
and the error which i got is
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc='myblackdog' , pname='puppy2' WHERE id = '2'' at line 1 ...
at line 1 its written <?PHP
my mysql version is : 5.0.51a
Expection reply , already it took my 3 hours..
Thanks
Reji.
Subject
Written By
Posted
Error in updation ... cant locate
June 01, 2009 03:57PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.