Re: Strange Mysql behaviour

2001-06-16 Thread William Wong
> Looks correct to me. Try running this query from the mysql program > to verify that you're really matching the password of some entry: > > mysql> SELECT *, password('mypass') FROM user; Hi guys, I've solved the problem, but it was something related to the password function. In my user table,

Re: Strange Mysql behaviour

2001-06-16 Thread SDiZ Cheng
I think the problem goes here: > PHP4> $result = mysql_query("insert into user values ('$username', > password('$password'), '$email')"); Please ensure $password is correct, and with no problem.. ( eg. space/ at the enter of the string ... etc.. ) --

Re: Strange Mysql behaviour

2001-06-16 Thread Paul DuBois
At 9:30 PM -0400 6/16/01, William Wong wrote: > > >PHP4> mysql_query("select * from user where username='myname' and passwd >= >> >password('mypass')"); >> >> Define "doesn't work". Fails to return rows? PHP generates an error >>message? > >Hi Paul, > >Sorry bout that. Yes it doesn't return

Re: Strange Mysql behaviour

2001-06-16 Thread William Wong
> >PHP4> mysql_query("select * from user where username='myname' and passwd = > >password('mypass')"); > > Define "doesn't work". Fails to return rows? PHP generates an error >message? Hi Paul, Sorry bout that. Yes it doesn't return any rows despite the fact that the correct username and pass

Re: Strange Mysql behaviour

2001-06-16 Thread Paul DuBois
At 8:49 PM -0400 6/16/01, William Wong wrote: >Hi there, > >For some reason, this query doesn't work: > >PHP4> mysql_query("select * from user where username='myname' and passwd = >password('mypass')"); Define "doesn't work". Fails to return rows? PHP generates an error message? > >WHILE this

Strange Mysql behaviour

2001-06-16 Thread William Wong
Hi there, For some reason, this query doesn't work: PHP4> mysql_query("select * from user where username='myname' and passwd = password('mypass')"); WHILE this one does work: PHP4> mysql_query("select * from user where username='myname' and password('mypass')"); Notice the lack of "passwd = "