Jump to content

[SOLVED] Array question


182x

Recommended Posts

Hey guys,

 

I am just wondering why the following code works.. shouldn't it be an mysql_fetch_assoc instead as its not using the index but a name instead?

 

Thanks.

 


<?php

while($var=mysql_fetch_array($queryResult))
{


     echo "<tr><td>".$var['name']."</td></td><td>".$var['job']."</td></tr>";
}
?>

Link to comment
https://forums.phpfreaks.com/topic/65200-solved-array-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.