All pastes #409965 Raw Edit

Anonymous

public text v1 · immutable
#409965 ·published 2007-03-26 00:42 UTC
rendered paste body

echo '<table border="1"><tr><th>Number</th><th>Carrier</th><th>Name</th></tr>'; 
echo 'dovid';
//count the rows and fields
$totalRows = mysql_num_rows($result);
$totalFields = mysql_num_fields($result);

//start the loop
for ( $i = 0; $i < $totalRows; ++$i ) {

//make it 2 dim in case you change your order
 $results[$i] = mysql_fetch_array($result);   

//call data at will controlling the loop with the array
echo $results[$i]['number'];                    
echo $results[$i]['type'];  
echo '<br/>';}
//print the entire array to see what lives where
//print_r($results);