Login   Register  
PHP Classes
elePHPant
Icontem

File: Exemple2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Fernando Costa(14biss)  >  SPMD  >  Exemple2.php  >  Download  
File: Exemple2.php
Role: Example script
Content type: text/plain
Description: Exemple to use SPMD
Class: SPMD
Wrapper to access different types of databases
Author: By
Last change:
Date: 3 years ago
Size: 282 bytes
 

Contents

Class file image Download
<?php
require 'SPMD.class.php';

$Con = new SPMD('mssql:host="127.0.0.1"; user="sa"; pass="123456"; database="MuOnline";');

$Query $Con->query('SELECT * FROM MEMB_INFO');
while(
$row $Query->Obj())
{
    echo 
'Login: '.$row->memb___id.' , Nome: '.$row->memb_name;
}
?>