Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Get column alias in php

Sun Oct 26, 2008 7:33 pm

Get column alias in php
Code:
<?php
   mysql_connect
("server","user","password");
   
mysql_select_db("userdb");

   
$query "SELECT FirstName as First_Name FROM Employee";
   
$result mysql_query($query);
   
$row mysql_fetch_row($result);
   echo 
mysql_field_name($result0);

?>




Post a reply
  Related Posts  to : Get column alias in php
 column can't be null     -  
 Get table column flag in php     -  
 Join Column by Primary Key     -  
 Create auto numbered column in mysql query     -  

Topic Tags

PHP Database