FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

SQL - need help

 


wowz
Quote:

define('dbhost', 'localhost');
define('dbname', 'itemdb');
define('dbuser', 'user');
define('dbpass', 'pass');
define('item_cache_table', 'item_cache');

Simply replace the 'localhost', 'itemdb', 'user', 'pass' and 'items_cache' strings with values that match your SQL setup. Leave this file open for now, you might need it in the next part.


Right, so what goes where? The info is stored elsewhere. Do I have to make sites for this? Or pages? Or what? Tables maybe? I'll be posting a lot of questions on this, so if you need more info, just ask lol
I have no idea about SQL and I can't log into config from here so I can't really see if there is any info thre or easy access to do this.

Thanks to anyone that replies with useful info!!!
n0obie4life
You told me through PM that the SQL server is offsite.

define('dbhost', 'localhost'); - replace that with the ip address of the sql server
define('dbname', 'itemdb'); - database name
define('dbuser', 'user'); - username
define('dbpass', 'pass'); - password

no idea what the last one is for doh.
Xiecho
hmm I think just Ignore those item Rolling Eyes it looks like game database>
just idea im nemb
Aelita
Are you using Frihost?
Kydha
Quote:
define('item_cache_table', 'item_cache');


This part is to set the name of a table use by the system, don't care about it.

Enjoy.
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.