query, INTERVAL problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have many problem when I submit (from form) the $due_date , so when I send
it as '20030501' it returns with deferent result than '2003-05-01' and that
drive me crazy..

my query is :

$sql = "SELECT doc_id FROM exams WHERE doc_id='$doc_id' and exam_type_id=
'1' and result='PASS' and '$due_date' > (exam_date + INTERVAL 11 MONTH) ";

Please help...



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux