• We just launched and are currently in beta. Join us as we build and grow the community.

[Question]PHP & MySQL Database set-up

Azdog45

Physical Access Auditor
A Rep
0
0
0
Rep
0
A Vouches
0
0
0
Vouches
0
Posts
45
Likes
129
Bits
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
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];
}
?>
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
 

440,010

316,559

316,568

Top