View Single Post
09-05-2007, 09:50 PM
#17
pixelgod is offline pixelgod
Status: Member
Join date: Jul 2007
Location: 127.0.0.1
Expertise:
Software:
 
Posts: 110
iTrader: 4 / 100%
 

pixelgod is on a distinguished road

Send a message via MSN to pixelgod

  Old

EDIT:



Code:

SHOW TABLES

Will give you back an array. Treat it as a standard query.
thanks


this statement does exactly what I want it to do, except I only want it to show the ones with CMS_ in front, and if possible, remove CMS_.

Code:
<select>
   $result = mysql_list_tables(memem);
     if(mysql_num_rows($result)) {
       while($row = mysql_fetch_array($result))
       {
          echo"<option value=\"$row[0]\">$row[0] $row[category]</option>";
       }
     } 
</select>