$result = $conn->query($sql);
$result = $conn->query($sql);
foreach($result as $row) {
echo $row['column_name'];
}
$result = $conn->query($sql);
foreach($result as $row) {
echo $row['column_name'];
}
// 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
}
foreach($result as $row) {
//echo $row['column_name']; // Print a single column data
echo print_r($row); // Print the entire row data
}
// 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
}