PHP Classes

File: example

Recommend this page to a friend!
  Packages of Mohammed Q. Hussain   Smart SQL   example   Download  
File: example
Role: Example script
Content type: text/plain
Description: example use SmartSQL
Class: Smart SQL
Database access wrapper supporting MySQL and MSSQL
Author: By
Last change: replace include("class.php"); to include("SmartSQL.php");
Date: 21 years ago
Size: 413 bytes
 

Contents

Class file image Download
<?php

    include("SmartSQL.php");

    $DB = new SmartSQL('localhost','root','','MySmartBB','mysql',0,'','');

    $DB->sql_connect();
    $DB->sql_selectdb();

    $query = $DB->sql_query("SELECT * FROM MySBB_info");

    echo 'Record number : ' . $DB->sql_rows_num($query) . '<br>';

    while($srow = $DB->sql_fetch_array($query)) {
     echo 'version ' . $srow['MySBB_version'];
    }


?>