輸入待尋字串
  <?php
  require("http://php.wilson.gs");  // 回首頁
  echo "http://php.wilson.gs/bible/function.php : 函式:mysql_tablename()";


函式: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++;
}
?>


[ 上一頁 /bible/function.php 下一頁 ]



本站置於 NEC BIGLOBE 地球村網際網路  echo "Copyright © 1999-2001, Wilson Peng";  //隱私權保護政策
  mail("wilson@biglobe.net.tw", "Feedback", $message);
  ?>