Zend - The PHP Company




Code Gallery: idiskp


K.Palani  

Type: class library
Added by: idiskp
Entered: 11/02/2005
Last modified: 02/12/2004
Rating: - (fewer than 3 votes)
Views: 5146
Name: K.Palani, email: ilikephp@yahoo.co.in It is a simple form wizard. The form contains all basic database functions and is styled like Visual Basic/FoxPro environment. The form is not using any external libraries. It is pure PHP and HTML. The code is very simple to understand and can be used by beginners and intermediate programmers. It has lot of scope for improvement. The beauty of the form is that it is a single form and it is not like clicking somewhere and viewing somewhere else. The form has navigation buttons like MoveFirst, Next, Previous, MoveLast, Search, Delete. Also, there are buttons for inserting and updating records. Primary key values can be searched using the search button. Values are fetched from table using the primary key value. It is ideal for creating table master forms and can be included in the project. Step 1: The user may copy these files including /lib sub folder in the place understood by PHP and Apache web server. Step 2: The user may copy the billunit.php and name it differently. Connection parameters may be set in 'lib/conn.php'. Step 3: The table name may be passed to the '$tablename' variable. Primary key field name may be passed to the '$pk' variable. Step 4: A table template may be created/modified suitably according to your table requirements like label for the field and text input. The sample 'billunit.php' contains 3 fields. Step 5: The names of the text input may be passed in the action buttons of 'Insert' and 'Update' as shown in the example. That is all. Save it and run from your browser. Comments/criticisms/suggestions are welcome. I am at ilikephp@yahoo.co.in .




Search