PHP - MySQL - Delete Row

前端 未结 4 842
梦如初夏
梦如初夏 2020-12-11 03:02

I am not too sure what i am doing wrong. i am trying to delete the entire row with this code but it is not working. No error is happening it prints the line that it was dele

4条回答
  •  一整个雨季
    2020-12-11 04:01

    You used $order instead of your query variable $sql

    $sql="DELETE FROM times WHERE id='$id'";
    mysql_query($sql);
    

提交回复
热议问题