[PHP-DB] Pulling record by time of day

2002-03-03 Thread mike
Hello, I've been working on pulling one or more records from my db by the time of day. Here is what I've tried so far, ? $time = date(Hi); if (900=$time=1500) {$time = 1;} ? I would then use $time in a query like this, $result = mysql_query(SELECT * FROM table WHERE id= $time,$db); But I can't

Re: [PHP-DB] Pulling record by time of day

2002-03-03 Thread olinux
try this: if (900=$time $time=1500) {$time = 1;} olinux --- [EMAIL PROTECTED] wrote: Hello, I've been working on pulling one or more records from my db by the time of day. Here is what I've tried so far, ? $time = date(Hi); if (900=$time=1500) {$time = 1;} ? I would then use $time