PHP Classes
elePHPant
Icontem

File: example_get_table_fields.php

Recommend this page to a friend!
  Classes of Rafal Antczak  >  RA PHP MySQL CRUD class  >  example_get_table_fields.php  >  Download  
File: example_get_table_fields.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: 8 months ago
Size: 505 bytes
 

 

Contents

Class file image Download
<?php
/*
 * Example - get fields names of 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');
   

   
$fields_names = $some_table -> getTableFields();
   
   
   
    if (
$fields_names !== FALSE) {
       
       
var_dump($fields_names);
       
    }


?>