Basically I have a table which has a number as it's name. I want to extract data from the table on a given line.
The table has 3 columns postID, text and date
i can extract data from the table if i enter the table number into the query, e.g with a table number 1
mysql_query("SELECT text FROM `1` WHERE postID = 3");
however what i want to be able to do is set 1
to be a vairable call $post_id (which i already have set up) so the code looks something like this:
mysql_query("SELECT text FROM $user_id WHERE postID = 3");
hope this question is pretty straight forward and i haven't waffled to much