Azdog45
Physical Access Auditor
2
MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1
500 XP
Hey guys,
I was wondering is anyone could give me help with setting up a database for a CS:GO jackpot site (I am not wishing to use this site for financial gain but merely for learning purposes)
The first issue I am having is when I load into my site I get an error saying "Access denied for root@ in "set.php" on line 9
I know I haven't set up a database yet so the $<> tags won't work but I didn't expect to get a "Access denied" reply.
If anyone could give me some help with this one then that would be great,
-FMWK
I was wondering is anyone could give me help with setting up a database for a CS:GO jackpot site (I am not wishing to use this site for financial gain but merely for learning purposes)
The first issue I am having is when I load into my site I get an error saying "Access denied for root@ in "set.php" on line 9
Code:
<?php
$sitename = "www.confuzion.tk";
$link = mysql_connect("mysql.0hosting.org", "u136842546_cfznr", "})aOv6X#%-L1m(f");
$db_selected = mysql_select_db('u136842546_cfznr', $link);
mysql_query("SET NAMES utf8");
function fetchinfo($rowname,$tablename,$finder,$findervalue) {
if($finder == "1") $result = mysql_query("SELECT $rowname FROM $tablename");
else $result = mysql_query("SELECT $rowname FROM $tablename WHERE `$finder`='$findervalue'");
$row = mysql_fetch_assoc($r);
return $row[$rowname];
}
?>
If anyone could give me some help with this one then that would be great,
-FMWK