PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Gilton Guma  >  MySQL Multi Query  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: MySQL Multi Query
Execute multiple MySQL queries at a time
Author: By
Last change: Adjusted for better understanding!
Date: 3 years ago
Size: 643 bytes
 

Contents

Class file image Download
<?php
require_once("MysqlMQ.class.php");

/* Creating Table of test - Begin */
$db = new MysqlMQ();
$db-> setSrv("localhost"); //Just one example, enter the your host address
$db-> setUsr("root"); //Just one example, enter the your database user
$db-> setPwd(""); //Just one example, enter the your database password
$db-> setDtb("test"); //Just one example, enter the your database name
$db-> setSQL("CREATE TABLE `table` (`id` INT(5) NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` VARCHAR(30) NOT NULL) ENGINE = INNODB");

echo
$db-> mQuery() ? "Ok <br />" : $db-> getErr();
/* Creating Table of test - End */
?>