mktime() expects parameter 1 to be long
Jeg får ovenstående fejl når min kode forsøger at tilgå min DB.Jeg har lagt et screendump af den her -
http://jgni.dk/pics/mktime.jpg
Koden der kalder det er her -
$news_stamp = mktime("", "", "",
substr($dato, 5, 2),
substr($dato, 8, 2),
substr($dato, 0, 4));
if ($news_stamp > mktime()) {
echo "<tr><td class=\"nyhed_h4\"><h4>";
echo substr($row["dato"], 8, 2) . " - ";
echo substr($row["dato"], 5, 2) . " - ";
echo substr($row["dato"], 0, 4);
echo "</h4></td></tr>";
echo "<tr><td class=\"nyhed\">";
echo $row["nyhed"];
echo "</td></tr>";
}
else {
$sql_rm = "delete from news where id='" . $row[id] . "'";
mysql_query($sql_rm);
}