Hi all i have a D/B search querying two UNIX time stamps. like this
PHP Code:
$date=1150498800;
$date2=1153782000;
$query="SELECT event,eventyear,eventstart,totalnt,totalg,ticketsleft,tadult,tchild FROM admin
WHERE stamp <= $date2 AND stamp >= $date AND stamp AND event LIKE '%$superp%'";
this works appart from the result i get is not correct!
the result is -3 dates from $date2 i beleve i need some thing like this
PHP Code:
<= $date2 AND stamp >= <= $date AND stamp >
but i cant figure out the correct syntax ive tryed using a BETWEEN query to but obviously that searchs between lol.
thanks for any help
Bookmarks