Mozna troszkę jasniej ?
PS TO musi byc index.html cyz moze byc index.php ;3
Jak już jako tako sobie radze to wyskoczył mi błąd

Po kliknieciu wyslij pod formularzem pokazuje sie
Warning
: mysql_query() [function.mysql
-query
]: Access denied
for user
'signweb'@'localhost' (using password
: NO
) in
/home
/signweb
/public_html
/system/panel
/add_post
.php on line 30
Warning
: mysql_query() [function.mysql
-query
]: A
link to the server could not be established in
/home
/signweb
/public_html
/system/panel
/add_post
.php on line
30
To jest add_post.php
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<title> Dodaj Post</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../style/panel.css" />
</head>
<body>
<div id="header"></div>
<div id="menu">
<div class="szerokosc">
<a href="#" class="menu">Ustawienia</a>
<a href="add_post.php" class="menu">Dodaj News !</a>
<a href="#" class="menu">Aktualnie Brak</a>
<a href="#" class="menu">Aktualnie Brak</a>
</div>
</div>
<div id="box">
<form action="" method="post">
tytuł: <input type="text" name="tytul">
<br/>autor <input type="text" name="autor">
<br/>treść <textarea name="tresc" rows="20" cols="50"></textarea>
<br/><input type="submit" value="Dodaj"></form>
<?php
include("config.php");
$query = mysql_query("insert into news values('','".$_POST['tytul']."',now(),'".$_POST['autor']."','".$_POST['tresc']."')"); ?>
</div>
</body>
</html>
a w tym boxie w którym ma sie to pojawic to pokazuje sie
Warning
: mysql_query() [function.mysql
-query
]: Access denied
for user
'signweb'@'localhost' (using password
: NO
) in
/home
/signweb
/public_html
/system/index
.php on line 24
Warning
: mysql_query() [function.mysql
-query
]: A
link to the server could not be established in
/home
/signweb
/public_html
/system/index
.php on line 24
Warning
: mysql_fetch_array(): supplied argument is not a valid
MySQL result resource in
/home
/signweb
/public_html
/system/index
.php on line
25
a to kod index.php
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<title> Dodaj Newsa </title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style/glowna.css" />
</head>
<body>
<div id="header"></div>
<div id="menu">
<div class="szerokosc">
<a href="#" class="menu">Ustawienia</a>
<a href="add_post.php" class="menu">Dodaj News !</a>
<a href="#" class="menu">Aktualnie Brak</a>
<a href="#" class="menu">Aktualnie Brak</a>
</div>
</div>
<div id="box">
<?php
include("panel/config.php");
$query = mysql_query("select * from news order by id desc limit 0,5"); {
$naz .= ''.$rekord[0].'">'.$rekord[1].'</a> Autor: '.$rekord[3].' - '.$rekord[2].'</li>';
}
echo '<ul>'.$naz.'</ul>'; ?>
</div>
</body>
</html>
Mam nadzieje, że ktos mi pomoże to naprawic i wyjasni co jest tego winą.
Pozdrawiam