How to update table with php and mysql -
hi have been trying update status of table can figure out why aint working, shows error messege status not update
$uid = $_get["uid"]; $query=$db->query("update users set status = 0 uid = '$uid'"); if ($query){ echo "ok"; } else { echo "error."; }
its not update into
should be
update users set status = 0 uid = '$uid'
Comments
Post a Comment