![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 7 Pomógł: 0 Dołączył: 18.11.2007 Ostrzeżenie: (0%) ![]() ![]() |
Więc mam taki kod:
CODE <?php $sql = mysql_connect (host, username, chcialbys wiedziec); mysql_query($sql); mysql_select_db("****"); $reg = "INSERT INTO members(nick, pass, mail) VALUES ("$_POST['usrname']","$_POST['pass']","$_POST['mail']")"; if ($_POST['usrname'] == '') echo 'Nie podałeś nazwy uzytkownika!'; else if ($_POST['pass'] == '') echo 'Nie podales hasla!'; else if ($_POST['mail'] == '') echo 'Nie podales adresu e-mail!'; else mysql_query($reg); ?> I niestety otrzymuje taki błąd: Kod [b]Parse error[/b]: syntax error, unexpected T_VARIABLE in [b]/var/www/sites/yoyo.pl/e/l/elodreipaj/reg.php[/b] on line [b]5 Nie wiem co jest grane - może ktoś pomóc? ![]() [/b] |
|
|
![]() ![]() |
![]() |
Aktualny czas: 20.08.2025 - 21:11 |