PHP Classes

File: readme.txt

Recommend this page to a friend!
  Classes of Carlos Miguel Guevara  >  classListbox  >  readme.txt  >  Download  
File: readme.txt
Role: Documentation
Content type: text/plain
Description: Notes of usage
Class: classListbox
Generate form select inputs from database queries
Author: By
Last change:
Date: 11 years ago
Size: 1,176 bytes


Class file image Download
        -easy usage
        -Just create a new object classListbox
        -Dont forget to set the name when creating the object. this name
         is the name of the <select>
        -In the set_query method you should send the query and the primary key
         or the id you use to identify each register
        -dont forget to add this primary key to the select query ex:
         if your key is "productID" and you want to get the "productname", your
         query should look like this:
             $object->setquery("selet productname,productID from products","productID")
        -have fun!
        -You can make the page refresh th data by doing a submit by using the
         $object->set_postback("true") or disable it by using $object->set_postback("false")
         just like in
        -Each time you chage the selected value from the listbox a submit event is call
         to refresh the content of the item if set_postback is set to "true"
        -to avoid submitting the form you can modify your form by getting a name to your
         submit button ...
         any questions: