PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

msql> <msql_select_db
Last updated: Fri, 22 Aug 2008

view this page in

msql_tablename

(PHP 4, PHP 5)

msql_tablenameobtiene el nombre de la tabla de un campo

Descripción

string msql_tablename ( int $query_identifier , int $field )

msql_tablename() toma un puntero resultado devuelto por la función msql_list_tables() como un índice entero y devuelve el nombre de una tabla. La función msql_numrows() puede utilizarse para determinar el número de tablas del puntero resultado.

Example #1 msql_tablename() example

<?php 
msql_connect 
("localhost");
$result msql_list_tables("wisconsin");
$i 0;
while (
$i msql_numrows($result)) {
    
$tb_names[$i] = msql_tablename($result$i);
    echo 
$tb_names[$i] . "<BR>";
    
$i++; 
}
?>



add a note add a note User Contributed Notes
msql_tablename
There are no user contributed notes for this page.

msql> <msql_select_db
Last updated: Fri, 22 Aug 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites