mysql_field_name.php : mysql_field_name « MySQL Database « PHP






mysql_field_name.php

 
<?
mysql_connect("localhost","root","");
mysql_select_db("mydatabase");
$query = "SELECT id as ID, title FROM mytable ORDER BY title";
$result = mysql_query($query);
$row = mysql_fetch_row($result);
echo mysql_field_name($result, 0);
?>
  
  








Related examples in the same category