Re: [PHP] mysql table information

2001-11-04 Thread David Robley
On Sat, 3 Nov 2001 00:32, Justin French wrote: > hi, > > i was wondering if anyone has some sample code / links which could help > me generate HTML forms dynamically from the fields/types/lengths of > tables in a mySQL database. > > ie, if i had a three column table with first (varchar 50), last

Re: [PHP] mysql table information

2001-11-02 Thread Stefan Rusterholz
Take a look at that: http://www.mysql.com/doc/S/H/SHOW.html and http://www.mysql.com/doc/D/E/DESCRIBE.html I fear you have to parse necessary information out of a statment like this: $result = mysql_query("DESCRIBE yourTable"); $tabelDesc = mysql_fetch_array($result); I didn't spend any time che