Hello again,
I'm trying to search for users who registered between two dates.
Start Date:<input type="Text" id="betweendatea" size="10" maxlength="10">
End Date:<input type="Text" id="betweendateb" size="10" maxlength="10">
The dates are entered yyyy-mm-dd
$query = mysql_query("SELECT userid FROM test WHERE date BETWEEN '$betweendatea' AND '$betweendateb'") or die (mysql_error());
The dates are stored as the date type in the database in the yyyy-mm-dd format.
The problem id that even though it's not coming up with any errors it's not finding any results either.
Anyone got any ideas what I'm doing wrong?
Thanks for once again helping out a newbie in need.