[PHP-DB] ? SELECT TABLE Command

2007-09-10 Thread Alec S.
Hi, I've got a PHP program I wrote a year or so ago with the oddest line of code. I know I didn't come up with it myself; I must have adapted it from a book or something, but I have checked all the books it could have come from and could not find it in any of them, nor can I find any such

Re: [PHP-DB] ? SELECT TABLE Command

2007-09-10 Thread Chris
Please fix your reply-to address. It is an SQL query (probably MySQL, but perhaps SQLite or possibly even PGSQL or mSQL): The line after $query should tell you what uses it ;) $query=SELECT TABLE $tablename;; if (mysql_query($query, $link)) { echo($indent.The table,

Re: [PHP-DB] ? SELECT TABLE Command

2007-09-10 Thread Mike W.
Chris wrote (in news:[EMAIL PROTECTED]): It is an SQL query (probably MySQL, but perhaps SQLite or possibly even PGSQL or mSQL): The line after $query should tell you what uses it ;) Sorry, I meant the book may have been about any of those; I was skimming through a bunch of SQL books at that