Witam,
mam problem ze skryptem formularza dodającego wydarzenia do mojej strony. Korzystałem z tutka, ale mam problem z bazą danych chyba
stworzyłem bazę danych (w której mam tez inne tabele) i tabele o nazwie news.
Na mojej stronie wyskakuje mi błąd
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'neneth'@'localhost' (using password: NO) in /index.php on line 459
Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'UNKNOWN_USER'@'localhost' (using password: NO) in /index.php on line 460
Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /index.php on line 460
Warning: mysql_query() [function.mysql-query]: Access denied for user 'UNKNOWN_USER'@'localhost' (using password: NO) in /index.php on line 461
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /index.php on line 461
Nie mam pojęcia, gdzie jest błąd. Proszę o pomoc.
Oto kod formularza, który znajduje się w pliku index.php:
Z góry dziękuje za pomoc.
mam problem ze skryptem formularza dodającego wydarzenia do mojej strony. Korzystałem z tutka, ale mam problem z bazą danych chyba
stworzyłem bazę danych (w której mam tez inne tabele) i tabele o nazwie news.
Na mojej stronie wyskakuje mi błąd
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'neneth'@'localhost' (using password: NO) in /index.php on line 459
Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'UNKNOWN_USER'@'localhost' (using password: NO) in /index.php on line 460
Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /index.php on line 460
Warning: mysql_query() [function.mysql-query]: Access denied for user 'UNKNOWN_USER'@'localhost' (using password: NO) in /index.php on line 461
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /index.php on line 461
Nie mam pojęcia, gdzie jest błąd. Proszę o pomoc.
Oto kod formularza, który znajduje się w pliku index.php:
Kod PHP:
<img src="images/top_1.png" />
<br> <br
<form action="dodaj.php" method=post>
<b>Tytuł:</b> <input type="text" name="tytul" >
<br/><br/> <b>Skrót:</b> </br> <textarea name="skrot" rows="2" cols="65"></textarea>
<br/><br/> <b>Treść:</b> </br> <textarea name="tresc" rows="8" cols="65"></textarea>
<center><br/><br/><input type="submit" value="Dodaj"></center></form>
<?php
mysql_connect('.....................', '....................' , '......................');
mysql_select_db("smuklasylwetka");
$query = mysql_query("insert into smuklasylwetka values('', '$tytul', '$skrot', '$tresc', now() )");
echo 'Dziękujemy za dodanie newsa';
Z góry dziękuje za pomoc.