MySQL Forums
Forum List  »  PHP

Re: PHP mysql query UPDATE not updating records when $POST is used
Posted by: sonam srivastava
Date: June 30, 2015 03:02PM

According to me you are sending an array which doesnot contain only a single value but bunch of value, so you must use
$fp = $_POST['proj'];
foreach( $fp as $xd )
{
$ins = mysql_query('UPDATE status_tab SET status="$name" where proj_id="$xd"', $connection);

}

Options: ReplyQuote


Subject
Written By
Posted
Re: PHP mysql query UPDATE not updating records when $POST is used
June 30, 2015 03:02PM


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.