Originally posted by dalecosp
You've got a quoting problem in the posted example. Is that a direct quote from your script?
Also, you've got a $ in front of the function mysql_fetch_row . That's likely to create issues, too....
Sorry I should have mentioned it is not a direct quote. Just an IDEA of what i'm doing.
The situation is, every time i retrieve the row using mysql_fetch_row($result) it fetches the correct row. BUT my problem is this.
I need to access each column in the row individualy at different times. so i can't do this:
while ($row = mysql_fetch_row($result)) {
$row[0], $row[1], $row[2];
}
First off that is hard coding it. second of all i need to sort of spit out the elements into certain fields in an html table.
....am i clear? I think i'm confusing myself..hrmmm...
Ok, I'm going to try doing a loop such as this:
for($i=0;$i<get_length($result);$i) {
while($row= mysql_fetch_row($result)) {
$row[$i];
}
}
and see how that goes. I'll let you know.
THANX for all the help though!!
Ulysses