PHP Login/MySQL Question, Im new to PHP

Status
Not open for further replies.

go2omni

New Member
Messages
5
Reaction score
0
Points
0
HI Guys,

I've never used php in my life but I thought i'd give it a go and I haven't really made websites for a while - I want to make a secret area for my clan/team members for a game online (omni.elementfx.com), so I downloaded someone's free login script to give a try and for some reason its not working, I think i've dont everything right and the only possible thing I can think of thats causing the issue is that it does say for the script to work it needs MySQLi

so, does x10hosting support MySQLi and ifso I guess I'm doing something wrong, could you take a look at the errors; http://omni.elementfx.com/Login/

And if it doesn't, can anyone point me in the right direction for a script that will work with you guys :D

Thanks in advance
ps. I did look in FAQ but couldn't find anything to do with MySQLi
 

go2omni

New Member
Messages
5
Reaction score
0
Points
0
LMAO, to verify im not a human or spam bot i had to type 'filthy dirty mess' lol.

Anyways, just wanted to say:

I edited the db.php file to change;

define("DB_NAME", "go2omni_Login") thats the name of the database
("DB_USER", "go2omni_"); <<ive put the name i created in the MySQL bit in the control panel

I also executed inside that go2omni_Login database the SQL script it told me to execute, that came wiht the free script from this location;

http://www.php-login.net/
 

go2omni

New Member
Messages
5
Reaction score
0
Points
0
/
define("DB_HOST", "127.0.0.1");
define("DB_NAME", "go2omni_Login");
define("DB_USER", "go2omni_root");
define("DB_PASS", "****");


is db host wrong?
 

go2omni

New Member
Messages
5
Reaction score
0
Points
0
OK, i changed the host to omni.elementfx.com and it suddenly gave me this error instead;

Warning: mysqli::mysqli() [mysqli.mysqli]: (42000/1044): Access denied for user 'go2omni_root'@'198.91.81.3' to database 'go2omni_Login' in /home/go2omni/public_html/Login/classes/Database.class.php on line 33

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/go2omni/public_html/Login/classes/Database.class.php:33) in /home/go2omni/public_html/Login/classes/Login.class.php on line 39

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/go2omni/public_html/Login/classes/Database.class.php:33) in /home/go2omni/public_html/Login/classes/Login.class.php on line 39
 

go2omni

New Member
Messages
5
Reaction score
0
Points
0
Please close this thread, I fixed the problem myself, WOOOT. SO SORRY :)
 
Status
Not open for further replies.
Top