Page 1 of 1
Search row error
Posted: Wed Aug 25, 2004 1:16 pm
by ljCharlie
Can anyone tell me why I got an error on this?
while ($row = mysql_fetch_array($result)){
$unqiueID = $row["dirID"];
}
This should fine, right?
ljCharlie
Posted: Wed Aug 25, 2004 1:25 pm
by feyd
what error are you getting?
Posted: Wed Aug 25, 2004 1:26 pm
by ol4pr0
Whats the error ???
Code: Select all
#another method
while ($row = mysql_fetch_assoc($result)){
$unqiueID = $row['dirID'];
echo $row['dirID'];
}
Posted: Wed Aug 25, 2004 2:05 pm
by ljCharlie
Many thanks for your help. I got it working now. Actually I forgot one } bracket after the wile loop because I have an IF statement before this while loop.
ljcharlie