<!DOCTYPE html> <title>Database Sample</title> <?php require_once "../../DemoMaster/Master.php"; require_once "../../lib/AutoLoad.php"; require_once "../../lib/DatabaseUtilities.php"; $tableName = 'tasks'; $properties = array('ID', 'TaskName', 'Description', 'StartDate', 'EndDate', 'IndentLevel', 'ProgressPercent', 'PredecessorIndices', 'AssignedResources', 'SortOrder', 'PreferredStartTime'); $dbh = new DatabaseUtilities('sqlite:../../Tasks.db', $tableName, $properties, null, null); //$dbh = new DatabaseUtilities('mysql:host=localhost;dbname=taskdb',$tableName,$properties,'root','password'); if ($_SERVER['REQUEST_METHOD'] == 'POST') { $typle = $_GET['type']; $dbh->SaveTasks($_POST, $tableName); } $result = $dbh->fetchTask(); ?> <div id="head"> <style type="text/css"> #Div1 > button { margin: 5px; font-size: 12px; font-family: "Portable User Interface", Helvetica, Arial, Verdana, sans-serif; width: 100%; } body { margin: 0px; } .ui-datepicker { font-size: 11px; }