> $NewItems = GetNewItems(date("Y-m-d", mktime(0,0,0,date("m")-
> 1,0,date("Y"))));

This is just as good, I think:
$NewItems = GetNewItems(date("Y-m-d"));
You're just trying to get today's date at midnight, right?

I'd suggest changing your function so that it accepts a standard timestamp
and then assemble the string for MySQL inside the function.

Leon





------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to