Re: SELECT statement
| From: | David Robley | Date: | Tue, 13 Feb 2001 06:09:33 +0000 |
| Subject: | Re: SELECT statement | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-39362@lists.php.net to get a copy of this message | ||
On Tue, 13 Feb 2001 16:20, Peter Houchin wrote:
> ok I've changed my code to
>
> $sql = "SELECT id, email FROM users WHERE user='$user' and
> pass='$pass'"; but still no joy can any one suggest why?
>
> (& Yes email is a field in the table)
>
> Peter
>
> > Hi,
> >
> > Can you have a SELECT statement (using mysql) that goes something
> > like
> >
> > $sql="SELECT id && email FROM table WHERE user='$user' and
> > pass='$pass'";
What is (not) happening? Any errors? Try using mysql_error() after you
pass the query to the DB and see if there is a useful message.
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA