Re: mysql question
| From: | Miles Thompson | Date: | Thu, 11 Jul 2002 16:24:00 +0000 |
| Subject: | Re: mysql question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-107175@lists.php.net to get a copy of this message | ||
Yes, though I'd probably add parentheses to make it clearer.
select * from table where ((start_shot <= $current_shot) and (end_shot >=
$current_shot))
Though that's probably not necessary. Make certain you have your less than's and greater thans set the right way, I've often sat slack-mouthed wondering why I had no data, simply because I was using "<" when it should have been ">".
Cheers - Miles Thompson
At 12:06 PM 7/11/2002 -0400, Alexander Ross wrote:
I realize this isn't a php question, but I figured that someone here knows of a good mysql newsgroup and in the mean time someone here probaby knows the answer to my question. Can I set up a query like this: select * from table where start_shot <= $current_shot and end_shot >= $current_shot note everything will be of type INT Thanks ya'll -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php