// Process all rows while($row = mysql_fetch_array($result)) { echo $row['column_name']; // Print a single column data echo print_r($row); // Print the entire row data }