Jump to content

what's wrong?


Pi_Mastuh

Recommended Posts

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 put

DELETE 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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.