Hi Matt,
> $i=0;
> while ($myrow = mysql_fetch_row($result)) {
> echo $myrow[i];
> echo $i;
> $i++;
> }
Are you trying to print every field of every row?
If so, you either need an inner loop of some sort to iterate through $myrow:
while ($myrow = mysql_fetch_array($result)) {
$i = 0;
foreach ($myrow as $field) {
echo "field ". $i. " is ". $field. "<br>";
$i++;
}
echo "<p>";
}
Or the recursive print function:
echo "<pre>";
while ($row = mysql_fetch_array($result)) {
print_r($row);
}
echo "</pre>";
The first can be formatted a lot more gracefully :-)
Cheers
Jon
____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:wdvltalk-join@;lists.wdvl.com
Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]