Variable for search results
| From: | Stuart Felenstein | Date: | Mon, 08 Nov 2004 17:36:11 +0000 |
| Subject: | Variable for search results | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-201550@lists.php.net to get a copy of this message | ||
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