Hi ng,
can anybody helps me with this
function ? it does not work ...
i have the connectionID and what does not work is the :
$delSQL = "DELETE FROM data WHERE abmonat < '$month' AND abtag < '$day'";
what is wrong with the $delSQL - Function ?
Here is the function :
....
function delete_old ()
{
$day = date("d");
$month = date("m");
$connectionID = OpenDatabase ();
$delSQL = "DELETE FROM data WHERE abmonat < '$month' AND abtag < '$day'";
$result = mysql_query($de lSQL,$connectio nID)
or die ("Query failed");
}
can anybody helps me with this
function ? it does not work ...
i have the connectionID and what does not work is the :
$delSQL = "DELETE FROM data WHERE abmonat < '$month' AND abtag < '$day'";
what is wrong with the $delSQL - Function ?
Here is the function :
....
function delete_old ()
{
$day = date("d");
$month = date("m");
$connectionID = OpenDatabase ();
$delSQL = "DELETE FROM data WHERE abmonat < '$month' AND abtag < '$day'";
$result = mysql_query($de lSQL,$connectio nID)
or die ("Query failed");
}
Comment