[PHP] Populating textboxes and listboxes from a query result of a database table

2002-12-26 Thread Denis L. Menezes
Hello friends, Can someone please tell me where I can find sample scripts for populating textboxes and listboxes on a form(when the form opens) using the data from fields in a table? Thanks Denis

Re: [PHP] Populating textboxes and listboxes from a query result of a database table

2002-12-26 Thread Rick Emery
Text box: print INPUT type=text name=myname value=\$data_value\\n; List box: print SELECT name=myselect\n; while($row = mysql_fetch_array($result)) { extract($row); print OPTION value=\$data_value\$data_title/OPTION\n; } print /SELECT\n; - Original Message - From: Denis L. Menezes

Re: [PHP] Populating textboxes and listboxes from a query result of a database table

2002-12-26 Thread Gerald Timothy Quimpo
On Thursday 26 December 2002 06:59 am, Rick Emery wrote: Text box: print INPUT type=text name=myname value=\$data_value\\n; i prefer to use templates. i use my own template code, but there are good template systems online that you can use, e.g., http://smarty.php.net is powerful. in a