PHP Function: MySQL Row To Form
Need a quick way to edit mysql data with php? This php function takes the name of a mysql table as its input and then builds a unique form for each row in the specified table. The php function checks to length of each field’s data in order to determine if it belongs in a textarea or input field. A unique and valid html form is then built with a uniquely identified update button for each row. This php script does not process the updating it only handles getting mysql field data into editable forms quickly.
Download rowToForm.zip here.
Technorati, Stumble it!, Digg, de.licio.us, Google, Twitter, Yahoo, reddit.
» Comments
March 18, 2008
I am newbie and got rowToForm to work!!! Is there a solution whereby the form will retain input data after update. Any help would be greatly appreciated. Thanks
November 7, 2008
php self would have to pint to
output_window with a link back to form.
March 14, 2009
I tried it and it only produced a blank screen. Could you post an HTML file using this function? I’m sure I made an error.
Also I got an error msg when I first ran the function. In the zip file on this page, the 4th line from the end is a parenthesis. The error went away when I changed it to a curly bracket.