> What do the values of $date and $datereturned look like?> Note in particular that '' is not a valid date value. You need to use> NULL if you want a null value.
The PHP function var_dump is an excellent debugging tool.--Mike Nolan