PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Garry Lachman   Secured mySQL Layer   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example of use
Class: Secured mySQL Layer
Execute MySQL queries build from parameters
Author: By
Last change:
Date: 13 years ago
Size: 691 bytes
 

Contents

Class file image Download
<?
require_once('./mysql.class.php');
var
$inst;
$inst = new MySQL();
$inst->Connect();

$arr = $inst->SelectQuery('links',Array('url','name'),
                            Array(
'http://www.garry-lachman.com','Garry Lachman'),
                            Array(
' AND '));
                           
$arr = $inst->SelectQuery('links');
echo
"<b>Record:" . $arr[0]['name'] . "</b><br/>";
echo
"<b>Num Records:" . $inst->getLastRecordsNumber(). "</b>";

$inst->UpdateQuery('links',Array('name'),Array('garry'),Array('id'),Array(555));
$inst->InsertQuery('links',Array('name','url'),Array('dfrfjfd','http://ajavdcvc'));

$inst->CloseLink();

echo
'<h2>Script Log:</h2>';
?>