Грешката е следната:
Table 'amxbans.bans' doesn't exist
Connect3.php:
Bans.php:
Table 'amxbans.bans' doesn't exist
Connect3.php:
Код:
<?php
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "Паролата";
$dbname = "amxbans";
$conn = mysql_connect($dbhost, $dbuser, $dbpass)or die(mysql_error());
mysql_select_db($dbname, $conn)or die(mysql_error());
mysql_query("SET CHARACTER SET cp1251");
mysql_query("SET NAMES cp1251");
?>
Bans.php:
Код:
<?php
@session_start();
ob_start();
include('connect3.php');
include('header.php');
?>
<td width="10px"></td>
<td width="500px" valign="top">
<div class="menu2"><div style="padding-top: 3px;"><b class="hui">Последни 5 Бана</b></div></div>
<div class="menu22">
<br/>
<center>
<?php
$result = mysql_query("SELECT * FROM amx_bans ORDER BY id LIMIT 1");
while($row = mysql_fetch_array($result))
{
}
?>
</center>
<br/><br/>
</div>
<?php
include 'reklama.php';
?>
</td>
<?php
include 'footer.php';
?>