load_form(mixed $key) : $this
Load an existing entry from DB.
Parameters
mixed | $key |
|
load_form(mixed $key) : $this
Load an existing entry from DB.
mixed | $key |
|
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.