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