분류 php

mysql_num_fields()함수

컨텐츠 정보

  • 조회 431 (작성일 )

본문

코드 : 

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

    mysql_select_db("db_name");

   $query = "SELECT id, title FROM mytable ORDER BY title";
   $result = mysql_query($query);
   echo "Total number of fields returned: ".mysql_num_fields($result);



php