LE> Any idea why I'm getting this error?

LE> Warning: setcookie() expects parameter 3 to be long, string given in *my
LE> script* on line 2

LE> setcookie("mytest", 1, "", "/");

It needs the time to be something not null.  If you mean to set 0, use
"0" instead of "".  Or, time()+somenum (not in quotes).

- Julie

--> Julie Meloni
--> www.thickbook.com

Find "Sams Teach Yourself MySQL in 24 Hours" at

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to