Instead of
if ((mysql_num_rows($result)) = 1)
try
if ((mysql_num_rows($result)) == 1)
HTH
Jon
-Original Message-
From: Andrew [mailto:[EMAIL PROTECTED]]
Sent: 15 February 2001 15:34
To: [EMAIL PROTECTED]
Subject: [PHP] parse error driving me nuts ...
hi, can anyone help me spot
Try to use == instead of =
Sorin Ifrim
- Original Message -
From: Andrew [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 15, 2001 5:33 PM
Subject: [PHP] parse error driving me nuts ...
hi, can anyone help me spot the parse error?
It's throwing up on the first
hi, can anyone help me spot the parse error?
It's throwing up on the first "if" line, and for the life of me I cannot
find it! :)
tia,
andrew
?php
include("db_connect_params.inc");
$sql="select path from PHOTO where pid =1";
$link_id = mysql_connect($host, $usr, $pass);
$result =
PROTECTED]'; '[EMAIL PROTECTED]'
Subject: RE: [PHP] parse error driving me nuts ...
Instead of
if ((mysql_num_rows($result)) = 1)
try
if ((mysql_num_rows($result)) == 1)
HTH
Jon
-Original Message-
From: Andrew [mailto:[EMAIL PROTECTED]]
Sent: 15 February 2001 15
Jon, John, Ifrim, the == worked ... thank you!!
gotta read up on it now :)
Cameron, dropping the extra () did not work :(
thanks for the suggestions folks!
andrew
Remember that '=' means assign what is on the right to what is on the left,
whereby '==' means is what is on the left equal
5 matches
Mail list logo