Build Your First Online Form

Build your first web form in two lines of PHP code. Below example generates the form from a database table named “employees”. When using star, it generates a web form with each form element ordered by database table column from the left most column to right most.

e.g.

SELECT * FROM...

or you can specify column names that only will be used. In this case, phpDatabaseForm generates form element only by the order column names specified.

SELECT col1, col2, col3... FROM...

At minimum, it requires only TWO lines of code.

$dbForm = new C_DatabaseForm("SELECT * FROM Employees", "EmployeeID", "Employees");
$dbForm -> display();

Live demo

No related content found.

Tags: ,

PHP Database Form
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.