In the below query,the "Account has been successfully approved" message dispayed. But in the database still approved_status remains '0'.
<?php
$connect=mysql_connect('localhost','root','');
mysql_select_db('bank',$connect);
if(isset($_POST['account_number']))
$account_number=$_POST['account_number'];
else
$account_number='';
$query = "UPDATE account_details SET approved_status='1' WHERE account_number='$account_number'";
$result= mysql_query($query) or die(mysql_error());
if ($result)
{
echo "Account has been successfully approved";
}
?>