XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
sqlutility Class Reference

Static Public Member Functions

static splitMySqlFile (&$ret, $sql)
 
static prefixQuery ($query, $prefix)
 

Detailed Description

Definition at line 15 of file sqlutility.php.

Member Function Documentation

◆ prefixQuery()

static prefixQuery ( $query,
$prefix )
static

add a prefix.'_' to all tablenames in a query

Parameters
string$queryvalid SQL query string
string$prefixprefix to add to all table names
Returns
mixed FALSE on failure

Definition at line 138 of file sqlutility.php.

◆ splitMySqlFile()

static splitMySqlFile ( & $ret,
$sql )
static

Function from phpMyAdmin (http://phpwizard.net/projects/phpMyAdmin/) Removes comment and splits large sql files into individual queries Last revision: September 23, 2001 - gandon

Parameters
arraythe splitted sql commands
stringthe sql commands
Returns
bool always true @access public

Definition at line 27 of file sqlutility.php.


The documentation for this class was generated from the following file: