Posted by Tim Van Wassenhove on 06/25/05 11:26
On 2005-06-25, ndsoumah@gmail.com <ndsoumah@gmail.com> wrote:
> Hello Guys
>
> I'm trying to run this query
>
> $uneRequete = "SELECT * FROM Usager WHERE motDePasse =
> {$loginPassword}";
>
> and I get this error message : Error 1054: Unknown column 'xxxx' in
> WHERE clause.....
> where 'xxxx' is the content of $loginPassword
Arghl,
my guess is that you have $loginPassword = 'xxxx';
-> $uneRequete = "SELECT * FROM Usager WHERE motDePasse = xxxx";
Should be
-> $uneRequete = "SELECT * FROM Usager WHERE motDePasse = 'xxxx'";
--
Met vriendelijke groeten,
Tim Van Wassenhove <http://timvw.madoka.be>
Navigation:
[Reply to this message]
|