whats my host name? localhost?
whats my host name? localhost?
Yes. It is localhost.
$host = "localhost";
$user = "game";
$pass = "lolmypass";
$tablename = "omerorig_game";
i take it im putting something wrong.
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 by Anna; 09-02-2011 at 02:44 PM.
Do you have trouble reaching your site?
Check here first: News and Announcements
Don't forget that x10hosting has an irc server as well. Come and join the fun
server: irc.x10hosting.com, main channel: #x10hosting
There's a lot helpful users there if need help building your site
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