函数:mysql_tablename()


mysql_tablename

取得资料表名称。

语法: 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++;
}
?>



[ 上一页 PHP 手册 下一页 ]

PHP 首页 | PHP 导读 | PHP 函数库 | PHP 函数索引 | PHP 范例程序