MySQL Forums
Forum List  »  PHP

Re: mySQL syntax error?
Posted by: Slava Divxak
Date: August 04, 2005 12:31AM


$field = $_POST['field'];
$field2 = $_POST[$field];

$qContent = sprintf("UPDATE content SET %s = '%s'", $field, $field2);

And in the begin of the file, type : print_r($_POST), and look - what POST-query return, may be there are no such variables :)

Trust me! I'm the best! :)

Options: ReplyQuote

Written By
August 02, 2005 09:29PM
August 03, 2005 12:59AM
August 03, 2005 10:17AM
Re: mySQL syntax error?
August 04, 2005 12:31AM

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.