<?php
require_once "jsonql.class.php";
$jql = new jsonql();
if($jql->createDB("sample")){
echo "Basic creating<BR/>";
$jql->addColumn("Name", "t");
$jql->addColumn("Lastname", "t");
$jql->addColumn("Age", "i");
$jql->addRow(array("Daniel", "Guerrero", 20));
$jql->addRow(array("Valeria", "Guerrero", 4));
$jql->addRow(array("Mia", "Efdent", 30));
$jql->printTable();
echo "<HR>";
echo "One row delete<BR/>";
$jql->deleteRow("Name", "Mia");
$jql->printTable();
echo "<HR>";
echo "All table delete";
$jql->deleteRow();
$jql->printTable();
} else {
echo "<BR/>Error!<BR/>";
}
?>
|