while ($line = mysql_fetch_array($result, MYSQL_ASSOC)){ echo "<pre>".print_r( $line, true )."</pre>"; }