Join Up!
96811 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousmysql_statmysql_thread_idnext
Last updated: Sun, 27 Oct 2002
view the printer friendly version or the printer friendly version with notes or change language to Finnish | German | Spanish

mysql_tablename

(PHP 3, PHP 4 )

mysql_tablename -- Načte jméno tabulky

Popis

string mysql_tablename ( resource výsledek, int i)

mysql_tablename() vezme identifikátor výsledku vrácený funkcí mysql_list_tables(), což je celočíslený index a vrátí jméno tabulky. K určení celočísleného indexu může být pouřžita funkce mysql_num_rows().

Příklad 1. mysql_tablename() Příklad

<?php
    mysql_connect("localhost", "mysql_uziv", "mysql_heslo");
    $result = mysql_list_tables("mojedb");

    for ($i = 0; $i < mysql_num_rows($result); $i++)
        printf ("Tabulka: %s\n", mysql_tablename($result, $i));

    mysql_free_result($result);
?>

Dále také: mysql_list_tables().

User Contributed Notes
mysql_tablename
add a note about notes
There are no user contributed notes for this page.
previousmysql_statmysql_thread_idnext
Last updated: Sun, 27 Oct 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST