Опитах се да си подкарам форум хоста, но изникнаха неочаквани и доста озадачаващи проблеми!
За тоя урок говоря: http://web-tourist.net/login/login/view.php?st=624
Но ми вади грешка:
Ето съдържанието на multiforums.config.inc.php:
:roll:
За тоя урок говоря: http://web-tourist.net/login/login/view.php?st=624
Но ми вади грешка:
Код:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/newforum/config/multiforums.config.inc.php on line 15
Warning: Cannot modify header information - headers already sent by (output started at /var/www/newforum/config/multiforums.config.inc.php:15) in /var/www/newforum/common.php on line
Код:
<?php
// Database Connection Details
$multiforums_mysql[server] = 'localhost';
$multiforums_mysql[database] = 'newforum';
$multiforums_mysql[db_user] = 'root';
$multiforums_mysql[db_pass] = 'a';
// You do not need to edit anything below
$db = mysql_connect($multiforums_mysql[server], $multiforums_mysql[db_user], $multiforums_mysql[db_pass]) or die("Unable to connect to database on '".$multiforums_mysql[server]."' with user '".$multiforums_mysql[db_user]."'<br />"."Please check your settings in multiforums.config.inc.php!");
mysql_select_db($multiforums_mysql[database],$db) or die("Please first create your database '".$multiforums_mysql[database]."'!"); ;
// Getting array for all settings
$resultlink = mysql_query("SELECT * FROM `multiforums_settings`",$db);
if ($settings = mysql_fetch_array($resultlink))
{
do
{
$multiforums_setting[$settings[v_name]] = $settings["value"];
} while ($settings = mysql_fetch_array($resultlink));
}
?>