분류 php

mysql_field_name()함수

컨텐츠 정보

  • 조회 469 (작성일 )

본문

코드 : 

mysql_connect("db_host","db_user","db_pass");
mysql_select_db("db_name");

$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);


php