This query tells me that its not a valid mysql result on line blah blah etc.
echo"$dateone $datetwo $c_id";//output the form data so i know its there
//do the query
$query ="select * from egg_order where c_id = '$c_id' AND (eo_date BETWEEN
'$dateone' AND '$datetwo' ) order by eo_date desc";
$result = mysql_query($query);
//loop the results
while($row=mysql_fetch_array($result)){
echo"$row[eotrans_id]<br>";
}
ive ran the query through phpmyadmin and it outputs 12 results, like i expect it to.
can someone tell me why it doesnt in php or point me in the right direction.
thanks if you can help.