title: Selecting the same table in another php file
body: <p>Suppose I've many tables in a mySQL database. Now in a PHP page named "A.php" I've selected a particular table using textbox and viewed the query on another PHP page named "B.php". Suppose the variable to get the table i used is,</p>
  
  <pre><code>$tablename=$_POST['textbox'];
  </code></pre>
  
  <p>And the query is,</p>
  
  <pre><code>$sql="SELECT * FROM $tablename WHERE id= '$id'";
  </code></pre>
  
  <p>Then, suppose I inserted a record &amp; now, I want to view my record in another PHP page named "C.php" but I've selected the table in "B.php" as a variable &amp; I've many tables but I want to have that particular table which is selected in "B.php". How can I do that? Badly need this help. Tnx in advance!</p>