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);