Re: [PHP] select based on time/date

2001-09-26 Thread Sheridan Saint-Michel
, September 25, 2001 5:08 PM Subject: RE: [PHP] select based on time/date I tried basically what you have but I got an error: $sql=select * from logged_in where time_in + interval 1 hour = now(); $result = mysql_query($sql); If it will help, here's the table structure -- looks like my

Re: [PHP] select based on time/date

2001-09-26 Thread Sheridan Saint-Michel
of the date types. Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: Jason Dulberg [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, September 25, 2001 6:24 PM Subject: RE: [PHP] select based on time/date I

RE: [PHP] select based on time/date

2001-09-26 Thread Jason Dulberg
this. __ Jason Dulberg Extreme MTB http://extreme.nas.net -Original Message- From: Sheridan Saint-Michel [mailto:[EMAIL PROTECTED]] Sent: September 26, 2001 9:38 AM To: Jason Dulberg; [EMAIL PROTECTED] Subject: Re: [PHP] select based on time/date The reason my query

RE: [PHP] select based on time/date

2001-09-26 Thread Jason Dulberg
To: Jason Dulberg; [EMAIL PROTECTED] Subject: Re: [PHP] select based on time/date Timestamp only sets itself to Now() if it isn't explicitly set (or set to NULL). So try this: $out = UPDATE logged_in SET session='',time_in=time_in WHERE (logged_in.userid='$aid') AND (logged_in.session

Re: [PHP] select based on time/date

2001-09-25 Thread David Robley
- From: Jason Dulberg [mailto:[EMAIL PROTECTED]] Sent: martedì 25 settembre 2001 5.47 To: [EMAIL PROTECTED] Subject: [PHP] select based on time/date I am using sessions on my site and have noticed that people often don't click the logout button -- something which I need them to do in order

RE: [PHP] select based on time/date

2001-09-25 Thread Jason Dulberg
To: [EMAIL PROTECTED] Subject: [PHP] select based on time/date I am using sessions on my site and have noticed that people often don't click the logout button -- something which I need them to do in order to clear their session from the db and update some site stats. In the sessions

Re: [PHP] select based on time/date

2001-09-25 Thread Sheridan Saint-Michel
- Original Message - From: Jason Dulberg [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, September 25, 2001 2:35 PM Subject: RE: [PHP] select based on time/date I had a look at the DATE_FORMAT info on the mysql doc page and its a bit easier to understand than

RE: [PHP] select based on time/date

2001-09-25 Thread Jason Dulberg
- From: Jason Dulberg [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, September 25, 2001 2:35 PM Subject: RE: [PHP] select based on time/date I had a look at the DATE_FORMAT info on the mysql doc page and its a bit easier to understand than the CONCATS. Would I

RE: [PHP] select based on time/date

2001-09-25 Thread Jack Dempsey
select * from logged_in where date_add(time_in,interval 1 hour) = now() -jack -Original Message- From: Jason Dulberg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 25, 2001 6:08 PM To: Sheridan Saint-Michel; [EMAIL PROTECTED] Subject: RE: [PHP] select based on time/date I tried

RE: [PHP] select based on time/date

2001-09-25 Thread Jason Dulberg
] Subject: RE: [PHP] select based on time/date select * from logged_in where date_add(time_in,interval 1 hour) = now() -jack -Original Message- From: Jason Dulberg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 25, 2001 6:08 PM To: Sheridan Saint-Michel; [EMAIL PROTECTED] Subject

[PHP] select based on time/date

2001-09-24 Thread Jason Dulberg
I am using sessions on my site and have noticed that people often don't click the logout button -- something which I need them to do in order to clear their session from the db and update some site stats. In the sessions table, I have a field $timein (in format F j, Y, g:i a) that gets added when

RE: [PHP] select based on time/date

2001-09-24 Thread Maxim Maletsky \(PHPBeginner.com\)
5.47 To: [EMAIL PROTECTED] Subject: [PHP] select based on time/date I am using sessions on my site and have noticed that people often don't click the logout button -- something which I need them to do in order to clear their session from the db and update some site stats. In the sessions table, I