Тема: Проблема со скриптом YourOwnBux.Что делать?
Скрипт вываливат такие ошибки:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in /home/xxxxx/public_html/config.php on line 10
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/xxxxxx/public_html/config.php on line 10
ВОТ КОД
1<?php
2
3// Database configuration
4
5$bd_host = "localhost";
6$bd_usuario = "root";
7$bd_password = "xxxxxx";
8$bd_base = "pro";
9$url = "http://localhost";
10$con = mysql_connect($bd_host, $bd_usuario, $bd_password); mysql_select_db($bd_base, $con);
11
12?>
13
Warning: mysql_query() [function.mysql-query]: Access denied for user 'xxxxxx'@'localhost' (using password: NO) in /home/xxxxxx/public_html/sitename.php on line 5
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/xxxxxx/public_html/sitename.php on line 5
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xxxxxxx/public_html/sitename.php on line 6
Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /home/xxxxx/public_html/sitename.php on line 8
ВОТ КОД
1<?
2
3include('config.php');
4$sql = "SELECT * FROM tb_site WHERE id='1'";
5$result = mysql_query($sql);
6$row = mysql_fetch_array($result);
7echo $row["sitename"];
8mysql_close($con);
9?>
Могу скрипт сам скинуть.
Помогите ПЛИЗ...