DELETE record in a row in PHP

前端 未结 4 1550
春和景丽
春和景丽 2021-01-13 03:30

I was trying to delete a record on my Database. So basically I created a table that contains all of my records. Now what I need to do is when I click on the \"DELETE\" link

4条回答
  •  臣服心动
    2021-01-13 03:49

    Modify your delete.php to retrieve the url parameter:

    
    

    As for your add.php, you are using this:

    $insertEmail = run_mysql_query($query);
    
        if(run_mysql_query($query))
    

    You should change it to this:

    $insertEmail = run_mysql_query($query);
    
    
        if($insertEmail)
    

    What you are doing right now is you are executing the query twice by calling run_mysql_query twice. This should fix it

提交回复
热议问题