How to display column name for their respective data.
$sql="SELECT * FROM <Tablename> WHERE domain_name='google.com'";
$result=mysqli_query($conn,$sql);
$row=mysqli_fetch_array($result,MYSQLI_NUM);
echo "<table>";
for ($i=0; $i <sizeof($row) ; $i++) {
echo "<tr>";
echo "<td>";
echo mysql_field_name($row,$i); // its not working.
echo $row[$i]."<br/>";
echo "</td>";
echo "</tr>";
}
echo "</table>";
Please help.
mysql_withmysqli_: php.net/manual/en/mysqli-result.fetch-field.php