Im having a lil problem and I cant see where it is...can anyone help plz? Im sure its something very small and silly...
Input:
$query = "CREATE table ".$db[table][articles]." (id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, ArticleStaus TEXT, DatePosted TEXT, PosterID TEXT, TopicName TEXT, TopicMessage TEXT)";
mysql_db_query($query, $db[connect][dbname])
or die ("Query 3 failed: ".mysql_error()."<br>");
Output:
Query 3 failed: Incorrect database name 'CREATE table moo (id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, ArticleStaus TEXT, DatePosted'
$db[table][articles] does exist btw! I know because it shows up on the page when I want to print the variable.
Any ideas? Thanx!