I want to update database table by array,currently iam using a code which take more time the code is below
$data = array(
'name' => $id
);
while($data)
{
$pid=$data['name'];
mysql_query("UPDATE pm_registration SET status='1' WHERE id='$pid'")or die(mysql_error());
}
is there any other solution ? Any assistance is very much appreciated.