Allow users to create a new table but one table for each topic only <p>I am trying to create something where the user can create a table for a topic, but only one topic table and in that topic table other users will be able to add to that topic table.</p> <p>I need the topic table to be only created once. So for ex:</p> <p>User A creates a a new topic which is a new table about oranges. </p> <p>Then other users will be able to add to that oranges table, but <strong>no</strong> other users can create another table called oranges.</p> <p>How should I approach this matter?</p> <p>What is the code for letting the users create the table but <strong>only once</strong>?</p> <p>Also how safe is it to give the users the ability to create tables?</p> <p>Here is some code I have that lets users add and displays data from the database.</p> <pre><code> &lt;?php include 'connection.php'; $query = "SELECT * FROM people"; $result = mysql_query($query); While($person = mysql_fetch_array($result)) { echo "&lt;h3&gt;" . $person['Name'] . "&lt;/h3&gt;"; echo "&lt;p&gt;" . $person['Description'] . "&lt;/p&gt;"; echo "&lt;a href=\"modify.php?id=" . $person['ID']. "\"&gt;Modify User&lt;/a&gt;"; echo "&lt;span&gt; &lt;/span&gt;"; echo "&lt;a href=\"delete.php?id=" . $person['ID']. "\"&gt;Delete User&lt;/a&gt;"; } ?&gt; &lt;h1&gt;Create a User&lt;/h1&gt; &lt;form action="create.php" method="post"&gt; Name&lt;input type ="text" name="inputName" value="" /&gt;&lt;br /&gt; Description&lt;input type ="text" name="inputDesc" value="" /&gt; &lt;br /&gt; &lt;input type="submit" name="submit" /&gt; &lt;/form&gt; </code></pre> <p>You advice will be great help!</p>