[PHP] Help needed about queries with MySQL, thanks.

2002-08-18 Thread Jean-Marc Godart
Hello everyone, I am a new PHP user, from Belgium. I am trying to manage a MySQL database with PHP, and I kindly request your help to solve a little (probably very stupid) problem I have been dealing with for a while already ... I have a MySQL database (called sessions) with a auto-increment

Re: [PHP] Help needed about queries with MySQL, thanks.

2002-08-18 Thread Jason Wong
On Sunday 18 August 2002 17:45, Jean-Marc Godart wrote: I have a MySQL database (called sessions) with a auto-increment INT field called sessionID. I try to check if there is already a record in this database with a given sessionID, which is called $sessionID in PHP. I use this query, which

Re: [PHP] Help needed about queries with MySQL, thanks.

2002-08-18 Thread Jean-Marc Godart
PROTECTED] Sent: Sunday, August 18, 2002 11:53 AM Subject: Re: [PHP] Help needed about queries with MySQL, thanks. On Sunday 18 August 2002 17:45, Jean-Marc Godart wrote: I have a MySQL database (called sessions) with a auto-increment INT field called sessionID. I try to check

Re: [PHP] Help needed about queries with MySQL, thanks.

2002-08-18 Thread Jason Wong
On Sunday 18 August 2002 17:59, Jean-Marc Godart wrote: Thanks for your suggestion ... Yes, I tried to print $sessionID (using echo()) and I get the right value (the one I am looking for) ... Though the query does not work. Any other idea ??? Thanks again ! Please post your code so we can

RE: [PHP] Help needed about queries with MySQL, thanks.

2002-08-18 Thread Craig Vincent
I have a MySQL database (called sessions) with a auto-increment INT field called sessionID. I try to check if there is already a record in this database with a given sessionID, which is called $sessionID in PHP. I use this query, which must be wrong (but I cannot find out why !!!) :