<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Is there a way to get a list of cms tables that already exist?</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Is-there-a-way-to-get-a-list-of-cms-tables-that-already-exist-73825</link>
        <description></description>
        <pubDate>Mon, 16 Mar 2026 23:42:43 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Is-there-a-way-to-get-a-list-of-cms-tables-that-already-exist-73825" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: [greg] Is there a way to get a list of cms tables that already exist?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2217865#post2217865</link>
          <description><![CDATA[Works perfectly!!!<br /><br />Thanks so much - I will begin replacing all instances of my entry fields with this - it will be very nice.  I have this concept in literally 10-15 places throughout my &quot;normal&quot; site setup.  This will be so nice.<br /><br />Gary.<br />]]></description>
          <pubDate>Tue, 18 Sep 2012 19:19:19 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2217865#post2217865</guid>
        </item>
                <item>
          <title>Re: [garyhoffmann] Is there a way to get a list of cms tables that already exist?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2217858#post2217858</link>
          <description><![CDATA[Hi Gary,<br /><br />This is a good question, and we've found a solution to it! If you use this MySQL code for the <i>get options from MySQL query</i> option on the <i>list</i> field type:<br /><br /><code>SELECT REPLACE(TABLE_NAME, '&lt;?php echo $TABLE_PREFIX;?&gt;', '') FROM information_schema.`TABLES` where TABLE_SCHEMA = '&lt;?php echo $GLOBALS['SETTINGS']['mysql']['database'];?&gt;' AND TABLE_NAME like '&lt;?php echo $TABLE_PREFIX;?&gt;_%'</code><br /><br />This should get the all of the table names from the information_schema table, and uses the MySQL replace function to remove the 'cms_' part of the table name in the results. It should all be dynamic so you shouldn't have to change anything in the code above.<br /><br />Thanks<br />]]></description>
          <pubDate>Tue, 18 Sep 2012 11:47:37 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2217858#post2217858</guid>
        </item>
                <item>
          <title>Is there a way to get a list of cms tables that already exist?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2217848#post2217848</link>
          <description><![CDATA[I've been doing this for several years now with text fields, but would like to use a drop-down if it's possible.  Keep in mind, this is all referencing the admin area - I already have it all worked out in the presentation of the site.<br /><br />Our scenario:  I have a &quot;form information record&quot; which includes general information about the form (form name, what should happen when a user submits it, etc.).  I also create a section called form fields in which the user lays out their form (record with keys of FirstName, LastName, etc.).<br /><br />In my form info section, I have a field called form_fields_section_name in which the user has to type the name of the table (minus the cms_ prefix).<br /><br />I'm wondering if there is a way to get a drop down list of all the tables in the database - I could use SHOW TABLES LIKE 'cms_%' but then I get the cms_ portion of the name back.  I'm wondering if there is a &quot;cms friendly&quot; way to get the table names back?<br /><br />Thanks,<br />Gary.<br />]]></description>
          <pubDate>Mon, 17 Sep 2012 16:38:22 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2217848#post2217848</guid>
        </item>
              </channel>
    </rss>
  