PHP Classes

File: example.minimum.php

Recommend this page to a friend!
  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: example bare minimum
Date: 7 years ago
Size: 248 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 (name, email) VALUES ('bob', 'user@email.com') ";
   
$id = $db->q($sql);
?>