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: ,