Login   Register  
PHP Classes
elePHPant
Icontem

File: combo_sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2003-06-09 17:41
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>";
?>