<?
##################################
# Insert Row Example
##################################
require('mysql.php');
$mysql = new mysql();
//Create new sql obj
$node = new sqlNode();
$node->table = "members";
// push( Data Type, Column Name, Column Value )
$node->push("int","MemberID",1);
$node->push("text","FirstName","John");
$node->push("text","LastName","Doe");
$node->push("defined","CreationDate","NOW()");
// Execute query and store results
if(($results = $mysql->insert($node)) === false )
die($mysql->debugPrint());
?>
|