:41: سلام
نمی دونم این اسکرپت چشه که درست نمیشه لطفا متن پایین رو نگاه کنید بگید باید چی کار کنم !
پیغامی که اسکریپت میده >>> جای ستاره ها = رمز و شخصی
Warning: mysql_connect() [ [ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ] ]: Access denied for user '********'@'localhost' (using password: YES) in /home/*******/public_html/pic/includes/config.php on line 7
I cannot connect to the database because: Access denied for user '*******'@'localhost' (using password: YES)
صفحه ای که این پیغام بهش اشاره می کنه >>>
[PHP]<?
//database info
$dbhost = 'Database host adress';
$dbname = '*****';
$dbpass = '****';
$dbuser = '*****';
$conn = mysql_connect ($dbhost, $dbuser, $dbpass) or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ($dbname);
$albumsPath = "albums/"; //relative to index.php
$galleryFolder = '/upload'; //the place of albumsPath relative to site root, e.g. photover
$tablePrefix = 'Mysql table prefix';
if( mysql_num_rows( mysql_query("SHOW TABLES LIKE '$tablePrefix".gallery_settings."'")))
{
$query = "SELECT * FROM $tablePrefix"."gallery_settings";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
//Gallery info
$orig_site_url = $row['home_site_url'];
$galleryName = $row['name'];
$max_size = $row['max_size'];//max tolerated size for server in pixels (width*height)
}
?>[/PHP]لطفا کمک کنید ممنون میشم ازتون :10: