Example
The following code is used to generate the demo on this site:
<?php
require ('yawic.php');
$gp=new yawic("localhost","username","password","yawic_demo");
$gp->add_table("Dragon");
$gp->add_table("Rider");
$gp->register();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Yawic demo</title>
<link rel="stylesheet" type="text/css" href="styles/common.css" />
<link rel="stylesheet" type="text/css" href="styles/form.css" />
<link rel="stylesheet" type="text/css" href="styles/table.css" />
<?php $gp->print_javascript(); ?>
</head>
<body >
<?
echo $gp->create_all();
?>
</body>
</html>


