Jump to content

Help :( Can't connect wrong variable


sleepnot

Recommended Posts

it says

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'username'@'localhost' (using password: YES) in C:\wamp\www\Forum\config.php on line 9

Call Stack

# Time Memory Function Location

1 0.0009 396096 {main}( ) ..\index.php:0

2 0.0014 399640 include( 'C:\wamp\www\Forum\config.php' ) ..\index.php:3

3 0.0014 399840 mysql_connect ( ) ..\config.php:9

cannot connect

 


<?php

mysql_connect('localhost', 'username', 'password') or die("cannot connect");
mysql_select_db('db');

//Username of the Administrator
$admin='admin';


//Forum Home Page
$url_home = 'index.php';

//Design Name
$design = 'default';

include('init.php');
?>

Link to comment
https://forums.phpfreaks.com/topic/261103-help-cant-connect-wrong-variable/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.