User login |
sc_updater referenceSC_updater is a small updater class. Retrieves a record from the database by primary key and updates html tags with the retrieved values. For sure it works with text boxes and div, td, span tags. Placement of those tags and correct ids for them is in your hands. It has two methods: set_updater_items($table, $key_field, $key_value, $field_tags) where place_jscripts($event_func_name) places the needed javascripts to the page. $event_func_name is a part of name defined by you in order to avoid name conflicts. If is set to 'test' then updater function will be named sc_test(). It will place some other functions also. But in order to retrieve record you must call the sc_your name function. That function takes one parameter the record key. See example. |