Здравейте,
нещо една заявка не ми бачка
config.php
SQL
писах кода 15 пъти и пак нищо
ПЛС хелп
нещо една заявка не ми бачка
Код:
<?php
include ("config.php");
$query2 = mysql_query("select * from menu");
while($rows2 = mysql_fetch_array($query2))
{
echo "$rows2[2]<br>";
}
?>
config.php
Код:
<?php
$user = "***";
$pass = "***";
$database = "***";
$host = "localhost";
$connection = mysql_connect("$host", "$user", "$pass");
$db = mysql_select_db("$database", $connection);
?>
SQL
Код:
CREATE TABLE `menu` (
`id` text collate cp1251_bulgarian_ci NOT NULL,
`title` text character set cp1251 NOT NULL,
`name` text collate cp1251_bulgarian_ci NOT NULL,
`link` text collate cp1251_bulgarian_ci NOT NULL,
`0` text collate cp1251_bulgarian_ci NOT NULL,
`1` text collate cp1251_bulgarian_ci NOT NULL,
`2` text collate cp1251_bulgarian_ci NOT NULL,
`3` text collate cp1251_bulgarian_ci NOT NULL,
`4` text collate cp1251_bulgarian_ci NOT NULL,
`5` text collate cp1251_bulgarian_ci NOT NULL,
`6` text collate cp1251_bulgarian_ci NOT NULL,
`7` text collate cp1251_bulgarian_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=cp1251 COLLATE=cp1251_bulgarian_ci;
писах кода 15 пъти и пак нищо
ПЛС хелп