取得资料表名称。
语法: string mysql_tablename(int result, int i);
传回值: 字串
函式种类: 资料库功能
本函式可取得资料表名称字串,一般配合 mysql_list_tables() 函式使用,取得该函传回的数字的名称字串。
<?php mysql_connect ("localhost:3306");$result = mysql_list_tables ("wisconsin");$i = 0;while ($i < mysql_num_rows ($result)) { $tb_names[$i] = mysql_tablename ($result, $i); echo $tb_names[$i] . "<BR>"; $i++;}?>