I created a forum on my site using my my website provider, it created the database for me and uploaded the forum, etc. Previously I uploaded the forum and created the db myself but for some reason the releases of phpbb3 are riddled with stuff like missing ?> tags
I'm trying to connect to the db using my own script, I have a few other databases which I created, and they work fine, except this one which was made by my provider
$con = mysql_connect('ip','user','pass');
if (!$con) {
die('Not connected : ' . mysql_error());
}
$db_selected = mysql_select_db('forum',$con);
if (!$db_selected) {
die ('Can\'t use db : ' . mysql_error());
}
I get Can't use db : Access denied for user 'user'@'%' to database 'forum'
EDIT: (fixed) was missing variable named $db_selected
phpbb3_posts