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? Link to comment https://forums.phpfreaks.com/topic/30719-whats-wrong/ 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] Link to comment https://forums.phpfreaks.com/topic/30719-whats-wrong/#findComment-141580 Share on other sites More sharing options...
mansuang Posted December 15, 2006 Share Posted December 15, 2006 Please show your full code for investigation Link to comment https://forums.phpfreaks.com/topic/30719-whats-wrong/#findComment-141581 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] Link to comment https://forums.phpfreaks.com/topic/30719-whats-wrong/#findComment-141698 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.