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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -