Login   Register  
PHP Classes
elePHPant
Icontem

File: example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes 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: 2005-07-01 22:41
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'];
    }


?>