PHP Classes

File: example_2.php

Recommend this page to a friend!
  Classes of Sinan Özel   MySQL_Control   example_2.php   Download  
File: example_2.php
Role: Example script
Content type: text/plain
Description: Little Bit Complicated Example
Class: MySQL_Control
Simplified MySQL Database Control
Author: By
Last change: Added an example of how to use the parsers in search.
Date: 21 years ago
Size: 468 bytes
 

Contents

Class file image Download
<?

include("mysql.class.php");

$db->Connect();

$parserfunctions["search"] = '$string = "%".preg_replace(\'/\s+/\',\'%\', $string)."%";'; // The variable $string is default.

$search["search:name,nickname"] = "mary";
$search["<=birth_date"] = "1980";
$search[">=birth_date"] = "1970";
$search["=sex"] = "female";
$search["=marital_cond"] = "single";

$setSpouses = $db->SelectSet("people", "*", MYSQL::SearchCond( $search, $parserfunctions ) );


?>