Hi like
i see no error with this but its not inserting into mattx_site.forums any ideas?Code:$query = mysql_query("INSERT INTO `mattx_site`.`forums` (name,category,desc) VALUES ('$name','$id','$desc')");

Hi like
i see no error with this but its not inserting into mattx_site.forums any ideas?Code:$query = mysql_query("INSERT INTO `mattx_site`.`forums` (name,category,desc) VALUES ('$name','$id','$desc')");
I'm confused :S Is your database called mattx_site.forums ? With the . ?
- Vince.
Try..
I dont know where the mattx_site comes from.. Is that the database name or something?Code:$query = mysql_query("INSERT INTO `forums` (name,category,desc) VALUES ('$name','$id','$desc')");
Cos if your connected to the database, then it should automatically know what database your looking in.
Coming and going...
Highers are getting the better of me
nope the db is
mattx_site
and the table is forums
Connecting to multiple db'sTry..
I dont know where the mattx_site comes from.. Is that the database name or something?Code:$query = mysql_query("INSERT INTO `forums` (name,category,desc) VALUES ('$name','$id','$desc')");
Cos if your connected to the database, then it should automatically know what database your looking in.
try running the query in phpmyadmin and it should tell you any errors that the script may have, as, as far as i can see, theres nothing wrong with code.
Or you could always get round it by doing
PHP Code:$1 = mysql_connect(Database 1);
/*
Queries
*/
mysql_close($1);
$2 = mysql_connect(Database 2);
/*
Queries
*/
mysql_close($2);
Last edited by MrCraig; 27-12-2007 at 09:34 PM.
Coming and going...
Highers are getting the better of me
Want to hide these adverts? Register an account for free!