host?

Status
Not open for further replies.

amuratovic187

New Member
Messages
3
Reaction score
0
Points
0
$host = "localhost";
$user = "game";
$pass = "lolmypass";
$tablename = "omerorig_game";


i take it im putting something wrong.
 

Anna

I am just me
Staff member
Messages
11,748
Reaction score
581
Points
113
database user, and database name is ALWAYS prefixed with your cpanel username, like cpanelname_dbname and cpanelname_dbuser, so judging by that snippet you have the user wrong. I will assume that is not your actual password, if it is you should change it immediately.

Ps it would make more sense to call the last variable $database as you would be connecting to the actual database, not a table in a database :)

One more thing, you would need to add the user to the database and give it required privileges if you haven't already, this is done in cPanel under "mysql databases"
 
Last edited:

amuratovic187

New Member
Messages
3
Reaction score
0
Points
0
soooo i just remembered that i'm a moron.
LOL i just realized i forgot to put the user to the database and give all permissions.

& no thats not my actual password lol thanks for the help
 
Status
Not open for further replies.
Top