have you tried printing them out with surrounding characters, like
echo 'row8=(',$row[8],') LOGINNAME=(',$LOGINNAME,')';
to see if there are leading or trailing spaces?
On Mon, 19 Aug 2002, Pafo wrote:
> heh,, is it just me or can anyone see whats wrong with this code...
>
> $query = "SELECT
oops again, please ignore my last two posts :(
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 3:38 PM
To: 'Pafo'; [EMAIL PROTECTED]
Subject: RE: [PHP] php string match problem
oh, just realised, one of them needs to go below
oh, just realised, one of them needs to go below the "else" line, to end the
"while" loop
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 3:37 PM
To: 'Pafo'; [EMAIL PROTECTED]
Subject: RE: [PHP] php string
<--- And a
third one
You only need one of them...
HTH
Martin
-Original Message-
From: Pafo [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 3:21 PM
To: [EMAIL PROTECTED]
Subject: [PHP] php string match problem
heh,, is it just me or can anyone see wha
heh,, is it just me or can anyone see whats wrong with this code...
$query = "SELECT * FROM logininfo WHERE loginname = '$LOGINNAME'";
if ($result = mysql_query($query)){
while ($row = mysql_fetch_row($result)){
$temp = $row[8];
$temp2 = $LOGINNAME;
if ($temp == $temp2) { <-- this d
5 matches
Mail list logo