Load Form – PHP Database Form https://phpdatabaseform.com Generate web form from database. Simple. Fri, 26 Dec 2014 16:07:39 +0000 en-US hourly 1 https://wordpress.org/?v=7.0.4 load_form() https://phpdatabaseform.com/docs/load_form/ Fri, 18 Jul 2014 18:42:12 +0000 http://phpdatabaseform.com/?p=350 load_form(mixed $key) : $this

Load an existing entry from DB.

Parameters

mixed $key
  • A database table primary key value. Zero to load the very entry.
]]>
Load Form And Edit Existing Record https://phpdatabaseform.com/examples/load-form-edit-existing-record/ Mon, 14 Jul 2014 17:13:56 +0000 http://phpdatabaseform.com/?p=321 All we talked so far is adding new data using PHP Database Form, how about editing existing record? For that, we have a simple method called load_form(). Simply pass record unique identifier such as primary key to load existing record onto the form. That’s it.

In this example, it passes a hard coded value, 9; but You can certainly change that value dynamically.

// ... code omitted
$dbForm -> load_form(9); // load a single record with EmployeeID equals to 9
$dbForm -> display();

Live demo

]]>