PHP Classes

File: combo_sample.php

Recommend this page to a friend!
  Classes of Davis Muhajereen D. Dimalen   DDcomboBox   combo_sample.php   Download  
File: combo_sample.php
Role: Example script
Content type: text/plain
Description: a sample php file for testing.
Class: DDcomboBox
A list box class that uses PostgresSQL record set.
Author: By
Last change:
Date: 21 years ago
Size: 459 bytes
 

Contents

Class file image Download
<?php

    $constr
= "user=davis dbname=sampledb";

    require(
"class.DDcomboBox.php");

/* The "<select name=select>" statement is intentionally not included in
   the class so that scripts can be added to an event in
   the select statement. (e.i. <select name=select
   onClick="JavaScript:reloadpage();">
*/
   
echo "<select name=select>";
   
$test = new DDcomboBox("sample_table", "field_label", "field_value", 32, $constr);
    echo
"</select>";
?>