<?php
require_once("MysqlMQ.class.php");
/* Sucessful Sample - 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("INSERT INTO `table` (`name`) VALUES ('name 1')");
$db-> setSQL("INSERT INTO `table` (`name`) VALUES ('name 2')");
$db-> setSQL("INSERT INTO `table` (`name`) VALUES ('name 3')");
echo $db-> mQuery() ? "Ok <br />" : $db-> getErr();
/* Sucessful Sample - End */
?>
|