PHP Classes

File: example2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Osama Salama  >  DBMysqli  >  example2.php  >  Download  
File: example2.php
Role: Example script
Content type: text/plain
Description: example2
Class: DBMysqli
Access MySQL databases with mysql and mysqli
Author: By
Last change:
Date: 2 years ago
Size: 943 bytes


Class file image Download
require_once "Database.php";


choose MYSQL or MYSQLi

//insert data=================================
'name'=>'ali mohammed ali',
$DB->save('table name',$data);


'name'=>'ali mohammed ali',
'counter'=>'(counter+1)' //you can use this to increment data in column .
$DB->update('table name',$data,"ID='1' and email='' ");

//free sql=============================
$sql="select .......................";
foreach($rs as $row){
    echo $row['columnname or index'];