I need to retrieve the records which are between the selected days(TWO dates are of two different fields in DB)
i tried this in php and its working
SELECT * FROM guest_info where check_in = '$check_in' and check_out= '$check_out';
but when i insert "between" noting happens
SELECT * FROM guest_info where check_in = '$check_in' and check_out= '$check_out' between '$check_in' AND '$check_out';
but its working well with mysql query... can sum1 help me with this issue? thanks :D