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
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
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
> 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
&. 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
> > >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
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
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
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
9 matches
Mail list logo