Posted by Philip Ronan on 06/27/05 12:13
"Ron Eggler @ work" wrote:
> Hi,
>
> why does "$date = date(y-m-d);" return following (with
> error_reporting(E_ALL))
> Notice: Use of undefined constant y - assumed 'y' in
> /srv/www/htdocs/web2/html/php/nospam/pop.php on line 48
> ... etc...
Because you're supposed to provide this function with a string argument.
Try putting quote marks around it like this:
$date = date("y-m-d");
--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
[Back to original message]
|