[PHP] MySQL problem - stumped

2001-03-10 Thread John Vanderbeck
The following code is giving an me problems, I can't figure it out to save my soul. The last line gives: Here is the code: $link = db_connect(); $query = "UPDATE Users SET firstname='$firstname', lastname='$lastname' WHERE username='$user' && password='$password'"; $result = mysql_query($query

Re: [PHP] MySQL problem - stumped

2001-03-10 Thread Rick St Jean
At 01:58 PM 3/10/01 -0500, John Vanderbeck wrote: You are using && in your statement ... should be "AND" . >The following code is giving an me problems, I can't figure it out to save >my soul. The last line gives: > >Here is the code: > >$link = db_connect(); >$query = "UPDATE Users SET firs

Re: [PHP] MySQL problem - stumped

2001-03-10 Thread Ernest E Vogelsinger
At 19:58 10.03.2001, John Vanderbeck said: [snip] >$query = "UPDATE Users SET firstname='$firstname', lastname='$lastname' >WHERE username='$user' && password='$password'"; [snip] Try "AND" instead of "&&", this shou

RE: [PHP] MySQL problem - stumped

2001-03-10 Thread John Vanderbeck
> From: Rick St Jean [mailto:[EMAIL PROTECTED]] > Sent: Saturday, March 10, 2001 2:09 PM > To: PHP User Group > Subject: Re: [PHP] MySQL problem - stumped > > > At 01:58 PM 3/10/01 -0500, John Vanderbeck wrote: > > > You are using && in your statement ... should b

Re: [PHP] MySQL problem - stumped

2001-03-10 Thread Julian Wood
&. But the > problem remains. Same error. > Any other ideas? > > - John Vanderbeck > - Admin, GameDesign > >> -Original Message- >> From: Rick St Jean [mailto:[EMAIL PROTECTED]] >> Sent: Saturday, March 10, 2001 2:09 PM >> To: PHP User Grou

RE: [PHP] MySQL problem - stumped

2001-03-10 Thread Matt Williams
> > >The following code is giving an me problems, I can't figure it > > out to save > > >my soul. The last line gives: > > > > > >Here is the code: > > > > > >$link = db_connect(); > > >$query = "UPDATE Users SET firstname='$firstname', lastname='$lastname' > > >WHERE username='$user' && password

Re: [PHP] MySQL problem - stumped

2001-03-10 Thread Christian Reiniger
On Saturday 10 March 2001 19:58, you wrote: > The following code is giving an me problems, I can't figure it out to > save my soul. The last line gives: > > Here is the code: > > $link = db_connect(); > $query = "UPDATE Users SET firstname='$firstname', lastname='$lastname' > WHERE username='$use

RE: [PHP] MySQL problem - stumped

2001-03-10 Thread John Vanderbeck
that call. - John Vanderbeck - Admin, GameDesign > -Original Message- > From: Julian Wood [mailto:[EMAIL PROTECTED]] > Sent: Saturday, March 10, 2001 2:28 PM > To: John Vanderbeck; PHP User Group > Subject: Re: [PHP] MySQL problem - stumped > > > > Well, PHP

RE: [PHP] MySQL problem - stumped

2001-03-10 Thread John Vanderbeck
identifier. Grr.. Thanks again. Your a deadline saver :) - John Vanderbeck - Admin, GameDesign > -Original Message- > From: Christian Reiniger [mailto:[EMAIL PROTECTED]] > Sent: Saturday, March 10, 2001 2:32 PM > To: PHP User Group > Subject: Re: [PHP] MySQL problem - stum