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,
$tablename=$_POST['textbox'];
And the query is,
$sql="SELECT * FROM $tablename WHERE id= '$id'";
Then, suppose I inserted a record & 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 & 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!