Friday, 9 August 2013

select query for date between

select query for date between

I am doing a project where i have to fetch data of between dates plus the
name of user. The query for only date betweenis working fine but with and
operater its going in wrong way so please suggest me how to implement it
to achieve desired output. this is my code:
$qry11=mysqli_query($con,"select * from entry where (create_date between
'$first' and '$second') && cnor='$nme'");
so please suggest ne how to do this....any idea will be appreciate with
highly gratitude.

No comments:

Post a Comment