php - How can i delete item from MySQL? -


well have code :

    $check = mysql_query("select * items id='$id'"); $checknum = mysql_num_rows($check); if($checknum==1) { mysql_query("delete * items id= '$id' ") or die("mysqlerror");  echo "ok"; } 

remove asterisk.

mysql_query("delete items id= '$id' ") or die("mysqlerror"); 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -