MySQL Forums
Forum List  »  PHP

Re: Trouble with updating Mysql table data
Posted by: Barry Galbraith
Date: March 22, 2012 09:46PM

There is an error on this line
$sql = "UPDATE library SET title = '" . $Title . "', author = '" . $Author . "', status = '" . $Status . "', WHERE id = $Id ";

Leave out the comma directly before WHERE
That's exactly where the error message is telling you the error is.

Good luck,
Barry.

Options: ReplyQuote


Subject
Written By
Posted
Re: Trouble with updating Mysql table data
March 22, 2012 09:46PM


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.