WmZilla - Webmaster and Marketplace

The Next Generation Webmaster and Trade Forum

Error connecting to the database

Arron

New member

0

0%

Status

Offline

Posts

32

Likes

0

Rep

0

Bits

170

8

Months of Service

0%
<?php error_reporting(0); $connection = mysql_connect("localhost","root",""); mysql_select_db("script",$connection) or die("Failed to Connect to the Database."); mysql_query("SET NAMES 'utf8'"); ?> Database name, Username, Password: Where do we write these? I get an error saying Failed to Connect to the Database.
 

254

6,645

6,665

Top