I’ve had problems with PHPMyAdmin on my website’s server, so I figured I’d set out on a rather ambitious project: write my own database manager.
So, first question: how can I use PHP to get a list of table names and column names from MySQL?
[code=html]<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-/W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="application/javascript" /> <link type="text/css" rel="stylesheet" href="" /> <title>MySQL Manager Index</title> </head> <body> <h1>MySQL Manager</h1> <h2>Viewing Tables in Database "coachrandom"</h2> <form action="view_table.php" method="get"> <fieldset> <legend>Choose Table</legend> <div> <select name="database=coachrandom&table"> <option value="characters">characters</option> <option value="comchars">comchars</option> <option value="comics">comics</option> <option value="keywords">keywords</option> <option value="storylines">storylines</option> <option value="subjects">subjects</option> </select> <input type="submit" value="Open Table" /> </div> </fieldset> </form> <script type="application/javascript" src="" /> </body> </html>[/code]
ah... but my wheel has two times more rolling power![/QUOTE]
Help @Mr_Initial_Man spread the word by sharing this article on Twitter...