I took your advice. Then I fixed the queries.
$query = "CREATE TABLE IF NOT EXSISTS " . $_POST['linkCatagory'] . " (
id int(6) NOT NULL auto_increment,
linkText varchar(64) NOT NULL,
url varchar(256) NOT NULL,
linkComment MEDIUMTEXT,
PRIMARY KEY (id)
)";
echo $query.'<br>';
This outputs
CREATE TABLE IF NOT EXSISTS Game Sites ( id int(6) NOT NULL auto_increment, linkText varchar(64) NOT NULL, url varchar(256) NOT NULL, linkComment MEDIUMTEXT, PRIMARY KEY (id) )
The second query is now
$query = "INSERT INTO " . $linkCatagory . " VALUES ('','$linkText','$url','$linkComment')";
echo $query.'<br>';
This outputs:
INSERT INTO Game Sites VALUES ('','Planet Quake','http://www.planetquake.com','A hardcore site for Quake fraggers!')
And the finale one
$query = "SELECT * FROM " . $catagory;
echo $query.'<br>';
outputs:
SELECT * FROM Game Sites
Are the queries ok now. It still isn't displaying the data in Game Sites just the fact that there is a Catagory Game Sites
I realize this is probably horrible db design still being my first code I'd like to get it working. If you have the link to the db normilization I will happily read it after then refactor my code over and over again.