MySQL Forums
Forum List  »  PHP

Re: Trouble with updating Mysql table data
Posted by: Oliver Snyder
Date: March 22, 2012 04:28PM

L.

URL = http://aabees.org/library_maint.php internet

I removed the hidden input line and that didn't affect anything.

When I change

$data = "UPDATE library SET title = '" . $Title . "', author = '" . $Author . "', status = '" . $Status . "' WHERE index = $Index";

to

UPDATE library SET title = '" . $Title . "', author = '" . $Author . "', status = '" . $Status . "' WHERE index = $Index;

I get this error

Parse error: syntax error, unexpected T_STRING in /home/mdwvo/public_html/aabees.org/library_results.php on line 11

What should the DB call be? I keep reading the 5.1 manual and I try to do what is shows and nothing works like it says it should

Is there a good link to code examples that actually work ?

Thanks again for putting up with my lack of skills.

O.

Options: ReplyQuote


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


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.