View Single Post
Old 02-17-2003, 07:14 PM   #1 (permalink)
bdl
Senior Contributor
 
Join Date: May 2002
Location: vta.ca.usa
Posts: 555
bdl is on a distinguished road
Preformatted MySQL tables

If this makes any sense to anyone, I'm looking for a method of outputting MySQL queries that look like queries from the command line. Something like this:

+-------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------+-------------+------+-----+---------+----------------+
| id | tinyint(4) | | PRI | NULL | auto_increment |
| name | varchar(40) | | | | |
| email | varchar(40) | | | | |
+-------+-------------+------+-----+---------+----------------+


Of course that looks messy, but it's copied / pasted directly from the MySQL prompt. There is a way of using <pre> and a mysql_query to output a page that looks just like that...I had it at one time, course, I've misplaced it...

bdl is offline   Reply With Quote