i have a problem with my companies web site. i coded it my computer. and than i published it. but i take that error message.
Warning: MySQL: A link to the server could not be established in /usr/local/psa/home/vhosts/tumer.net/httpdocs/top.php on line 240
and this
Warning: Supplied argument is not a valid MySQL result resource in /usr/local/psa/home/vhosts/tumer.net/httpdocs/top.php on line 248
239: $sql = "SELECT shortid FROM shortly WHERE active='1' ORDER BY shortid DESC limit 5";
240: $result = mysql_db_query($dbasename, $sql);
248: while ($row = mysql_fetch_array($result)) {
and my second error is:
Warning: MySQL Connection Failed: Access denied for user: 'apache@localhost' (Using password: NO) in /usr/local/psa/home/vhosts/tumer.net/httpdocs/top.php on line 119
119 : $cookiecheck = mysql_db_query($dbasename, "select name from members where md5(memberid)='".$_COOKIE["memberid"]."'");
i changed $_COOKIE to $HTTP_COOKIE_VARS but error messages continues.
do you have any idea?