Comunitatea PHP Romania
 

 
mysql_tablename

mysql_tablename

(PHP 3, PHP 4 , PHP 5)

mysql_tablename -- Get table name of field

Description

string mysql_tablename ( resource result, int i)

mysql_tablename() takes a result pointer returned by the mysql_list_tables() function as well as an integer index and returns the name of a table. The mysql_num_rows() function may be used to determine the number of tables in the result pointer. Use the mysql_tablename() function to traverse this result pointer, or any function for result tables, such as mysql_fetch_array().

Exemplu 1. mysql_tablename() example

<?php
mysql_connect
("localhost", "mysql_user", "mysql_password");
$result = mysql_list_tables("mydb");

for (
$i = 0; $i < mysql_num_rows($result); $i++) {
    echo
"Table: ", mysql_tablename($result, $i), "\n";
}

mysql_free_result($result);
?>

See also mysql_list_tables().

Ultimele discutii in forum RSS Forum

Ultimele articole Ultimele articole

Top membri

Pirahna Pirahna
la birou
carco carco
Bucuresti
Birkoff Birkoff
Bucuresti
Mascka Mascka
Braila
raul_ raul_
whooper whooper
Toronto ON
mihaitha mihaitha
Sibiu
gabysolomon gabysolomon
Bacau
oriceon oriceon
Constanta
garlicinicolae garlicinicolae

Newsletter


Email:
 inscriere
 renuntare
 
 Arhiva newsletter

Parteneriat

Copyright © 2001-2008 PHP Romania Add PHPRomania to Google Add PHPRomania to Del.icio.us Add PHPRomania to Stumbleupon Add PHPRomania to Yahoo! Add PHPRomania to Digg Add PHPRomania to Blink Credit Reports | Bad Credit Mortgages | Tile | Buy PSP | Berlin Property
Ads: Partener Way2Web Nework: gazduire web | inregistrare domenii | web design | imobiliare | web hosting
Powered by Simplis