MySQL Forums
Forum List  »  Newbie

Re: SQL update query
Posted by: Barry Galbraith
Date: March 28, 2020 11:01PM

You have to actually execute the SQL UPDATE statement, and at least check for failure.

$sql = "UPDATE members SET verified_account=1 WHERE member_id=1";
$result = mysqli_query($conn, $sql) or die;

Good luck,
Barry.

Options: ReplyQuote


Subject
Written By
Posted
March 28, 2020 01:52PM
Re: SQL update query
March 28, 2020 11:01PM


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.