Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

quick question on UPDATE

Status
Not open for further replies.

altctrldel

Technical User
Jul 26, 2003
30
Code:
mysql_query("UPDATE tblrepair SET ( mgt_id,rep_status,rep_notes)                                              VALUES('$mgtid','$decision','$comments') WHERE rep_id='$rid'") or die ("Error in registration sql:" . mysql_error());

I always get a 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 '( mgt_id,rep_status,rep_notes) '.

I already checked all my variables and they all have data in them.

thanks
 
yup thanks got it na awhile ako. trial n error hehe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top