The session file is an SSI
function deleteSubscriptions(){
global $database;
$q="DELETE FROM subscriptions WHERE userID = ('".$_SESSION['userid']."' AND promoCode = '".$_GET['pc']."')";
if (!mysql_query($q))
{
die('Error: ' . mysql_error($q));
}
}
Is there anything wrong with the syntax?
function deleteSubscriptions(){
global $database;
$q="DELETE FROM subscriptions WHERE userID = ('".$_SESSION['userid']."' AND promoCode = '".$_GET['pc']."')";
if (!mysql_query($q))
{
die('Error: ' . mysql_error($q));
}
}
Is there anything wrong with the syntax?