PHP Classes

File: example_get_table_with_query.php

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


Class file image Download
 * Example - get records from table with query

// 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');
 * Set string query - must be compatible with SQL syntax
$some_table -> string_query = 'id > 1 AND id < 5';
$my_data = $some_table ->getTableWithQuery();
    if (
$my_data !== FALSE) {


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