Pi_Mastuh Posted December 15, 2006 Share Posted December 15, 2006 I'm using mysql_query("DELETE FROM `Mail` WHERE `msgID` = '$msgID'"); but it's not deleting. The variable works, I'm echoing it at the top of the page, but for some reason it won't delete. When I actualy putDELETE FROM `Mail` WHERE `msgID` = '12' into the database it works just fine. Any ideas as to what's wrong? Quote Link to comment Share on other sites More sharing options...
fert Posted December 15, 2006 Share Posted December 15, 2006 try[code]mysql_query("DELETE FROM `Mail` WHERE `msgID` = '$msgID'") or die(mysql_error());[/code] Quote Link to comment Share on other sites More sharing options...
mansuang Posted December 15, 2006 Share Posted December 15, 2006 Please show your full code for investigation Quote Link to comment Share on other sites More sharing options...
Pi_Mastuh Posted December 15, 2006 Author Share Posted December 15, 2006 Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)Here's my full code:[code]<?session_start();$session = session_id();include ("secure/config.php"); include ("secure/dbinfo.php");$msgID = $_POST['msgID'];echo $msgID; mysql_query("DELETE FROM `Mail` WHERE `msgID` = '$msgID'") or die(mysql_error()); header("Location:../inbox.php"); ?>[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.