PHP Classes
elePHPant
Icontem

File: example.minimum.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of JImmy Bo  >  Bobo PHP DB Class  >  example.minimum.php  >  Download  
File: example.minimum.php
Role: Example script
Content type: text/plain
Description: Bare Minimum Example of how to use this PHP database access class
Class: Bobo PHP DB Class
Simple MySQL database class
Author: By
Last change:
Date: 3 years ago
Size: 265 bytes
 

Contents

Class file image Download
<?php
   
// this example script shows how simple this class can be.
   
include_once('inc.config.php');
   
   
// $db->q // insert or update
   
$sql = "INSERT INTO tablename (url, email) VALUES ('http://insidefame.com', 'user@email.com') ";
   
$id = $db->q($sql);
?>