Re: ?!? wats wrong?
| From: | Maureen | Date: | Thu, 09 May 2002 15:30:54 +0000 |
| Subject: | Re: ?!? wats wrong? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-19081@lists.php.net to get a copy of this message | ||
If the Id field type is integer, take the single quotes off from around the 1
1 in the select statement, otherwise it reads '1' as a string, ie. SELECT *
FROM personen WERE Id <> 1 ORDER BY
Bijnaam. ^
HTH
MB
Bogdan Stancescu <mgv@fx.ro> said:
> The != operator is valid under MySQL. You should probably try "WHERE"
> instead of "WERE".
>
> Bogdan
>
> Jeffrey_N_Dyke@Keane.com wrote:
>
> >Hello...
> >use the <> option instead
> >
> >SELECT * FROM personen WERE Id <> '1' ORDER BY Bijnaam
> >
> >Jeff
> >
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--