| 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><h2>Using cascadeSelectAssoc with PostgreSQL Database</h2>
 <?php
 include("cascadeSelectAssoc.php");
 include("pgsqlCascadeSelectAssoc.php");
 $mothersData = getMotherData("localhost","postgres","","csa_test_db","mothers","id_mother","mother","mothers");
 $childrenData = getChildData("localhost", "postgres", "", "csa_test_db", "children","id_mother", "id_child", "child");
 
 $o=new cascadeSelectAssoc("testForm");
 $o->setName("id_mother","id_child");
 $o->setHeight();
 $o->setData($mothersData,$childrenData);
 $o->writeScript();
 ?>
 <form name="testForm" method="post">
 <table border=0 cellpadding=2 cellspacing = 2>
 <tr>
 <tr align=center>
 <td>Types</td>
 </tr>
 <tr>
 <td><?php $o->drawMother(); ?> </td>
 </tr>
 <tr align=center>
 <td>Tools</td>
 </tr>
 <tr>
 <td><?php $o->drawChild("sel"); ?> </td>
 </tr>
 <tr>
 <td>
 <input type="submit" value="Go">
 </td>
 </tr>
 </table>
 
 |