Variable for search results

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

 



I have a form element which allows a user to go back
"x number of days" in the records.


$sql.=sprintf("SELECT * FROM records WHERE
Date_Sub(Curdate(), interval  day) "$%s" <=
PostStart") 

This formula works when I actually hardcode the number
of days in where this mess --> "$%s" is right now.

I'm not entirely sure how this should be coded.  Can I
put the variable right there? 

I'll take any suggestions, cause I'm stuck here.

Thank you,
Stuart

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux