File: example_get_table_info.php

Recommend this page to a friend!
  Classes of Rafal Antczak  >  RA PHP MySQL CRUD class  >  example_get_table_info.php  >  Download  
File: example_get_table_info.php
Role: Example script
Content type: text/plain
Description: Example script
Class: RA PHP MySQL CRUD class
Manipulate data in MySQL database tables
Author: By
Last change:
Date: 1 year ago
Size: 614 bytes


Class file image Download
 * Example - get info about table

// Include Table class

require_once 'class.table.php';

 * Init new Table object with database parameters specified in db_params.php
 * In this example the name of your table is 'table1'
$some_table = new Table('table1');

$table_info = $some_table ->getTableSize();
    if (
$table_info !== FALSE) {
'Number of columns = ' . $table_info['columns_count'] . '<br>';
'Number of rows = ' . $table_info['rows_count'];


For more information send a message to info at phpclasses dot org.