Sean Strickland
asked on
PHP mySQL Select query by date
I'm trying to use the following code to select data by a date range and display it. I can display it fine, but I can't seem to get the mySQL query right...
$url[3]; is an exploded query_string. The value is 11/01/08
$searchval = $url[3];
$itemsbydate = mysql_query("SELECT id,group_number,group_name ,date_rece ived,dispo sition,DAT E_FORMAT(d ate_receiv ed,'%Y%m%d ') as recdate from inquiries where userid='$userid' and recdate=$searchval");
while($disprow = mysql_fetch_array($itemsby date, MYSQL_ASSOC))
{
$url[3]; is an exploded query_string. The value is 11/01/08
$searchval = $url[3];
$itemsbydate = mysql_query("SELECT id,group_number,group_name
while($disprow = mysql_fetch_array($itemsby
{
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks! Both of your solutions combined helped me.
Open in new window