checkdate gibt
Code:
Warning: checkdate() expects parameter 2 to be long, string given in /home/.../create_account.php on line 80
Kann mir das mal jemand erklären?
Viele Grüße
Andreas
Warning: checkdate() expects parameter 2 to be long, string given in /home/.../create_account.php on line 80
<?php
$eingabe = '2e.12.2008';
$tmp = explode('.', $eingabe);
if (count($tmp)!=3 || !@checkdate($tmp[0], $tmp[1], $tmp[2]))
echo $eingabe, ' ist kein gültiges Datum';
?>
<?php
$eingabe = '2e.12.2008';
$tmp = explode('.', $eingabe);
if (count($tmp)!=3 || !@checkdate($tmp[0], $tmp[1], $tmp[2]))
echo $eingabe, ' ist kein gültiges Datum';
?>
Einen Kommentar schreiben: