ternstyle - Lehigh Valley, Allentown, Bethlehem, Easton, WordPress, Lehigh Valley web design, web programming, web development, lehigh valley web hosting, content management tools, website plugins, WordPress plugins, WordPress Themes, php libraries, php classes, javascript libraries, javascript classes, jQuery plugins, web programming, free web software, free php classes, free software

  • NEW EVENT PLUGIN FOR WordPress!

    ternCal is the New Ultimate WordPress Event System!

    Featuring repeating events, Google Calendar integration, ICAL and Outlook Support, month, week, and day views, Wordpress short code for listing events, a color coded legend and much much more...

    Check it out now!

MySQL PHP Class

This is a very simple class designed to connect with and perform queries on a MySQL database.

Download

Download MySQL PHP Class

3.8

8 KB

Sample Code

$mysql = new mysqlClass($mysql_address,$mysql_username,$mysql_password,
$mysql_database);
$result = $mysql->query('select * from table_name');

The above variable $result will be an associative array of all the database rows the query returned. Which might look something like the following if it were to be printed:

array(1) {
   [0] => array(2) {
       ["id"] => string(4) "1000"
       ["name"] => string(16) "John Jingle"
   }
}

Current Version

The current version of this software is 3.8.

Features

  • Connect to a MySQL server and select a database with one command
  • Perform any type of MySQL query
  • Compile your own queries
  • Access MySQL errors from a global associative array

Requirements

  • PHP 4.3.0+

Documentation

Home > Products > PHP classes > MySQL PHP Class

Copyright © 2010 Ternstyle Inc. All rights reserved.
site design: ternstyle.us