Are you sure the second and third SELECT keywords have to be there. Would this be OK:
$bquery="SELECT * FROM rt_booking WHERE rt_unit_id='".$_POST['unit_id']."'
AND (UNIX_TIMESTAMP(str_to_date(rt_start_date,'%Y-%m-%d'))>=".$my11."
OR UNIX_TIMESTAMP(str_to_date(rt_end_date,'%Y-%m-%d'))<=".$my22.")";
broj1
Nearly a Posting Virtuoso
1,212 posts since Jan 2011
Reputation Points: 167
Solved Threads: 164
Skill Endorsements: 13
Question Answered as of 3 Months Ago by
broj1