php couldnt connect to mysql
Posted: Thu Jun 03, 2010 3:58 pm
hello there.
i have a problem with my website. i try to add top pvp / top pk but i cant because php doesnt connect to mysql. here is my config files:
stats.php:
status.php
<?php
$server = "my ip here";
$portg = "7777";
$portl = "2106";
$timeout = "1";
?>
i use this website:
http://www.maxcheaters.com/forum/index. ... c=115992.0
i use freehostia and my server is dedicated. ive also enabled the mysql remote access in my server machine and ive opened the ports 80 and 8000.
i just hope somebody is going to answer because i know there are only a few people really willing to help newbies. so im almost sure the only post in this topic will be mine.
i have a problem with my website. i try to add top pvp / top pk but i cant because php doesnt connect to mysql. here is my config files:
stats.php:
Code: Select all
<?php $db_user = "root"; $db_pass = "my password here"; $db_name = "l2jdb"; $db_serv = "my ip here"; $res = mysql_connect ( $db_serv, $db_user, $db_pass ) or die ("Coudn't connect to [$db_serv]"); $resdb = mysql_select_db ( "$db_name",$res ); return $res; ?>
<?php
$server = "my ip here";
$portg = "7777";
$portl = "2106";
$timeout = "1";
?>
i use this website:
http://www.maxcheaters.com/forum/index. ... c=115992.0
i use freehostia and my server is dedicated. ive also enabled the mysql remote access in my server machine and ive opened the ports 80 and 8000.
i just hope somebody is going to answer because i know there are only a few people really willing to help newbies. so im almost sure the only post in this topic will be mine.