Parse error: syntax error, unexpected '$id' (T_VARIABLE), expecting ',' or ';' in D:\WebServ\httpd\test\profil.php on line 6
index.php
<?php $user='root'; $haslo=''; $baza='strona'; $host='localhost'; $zapytanie = 'SELECT id, nazwa, typ, max_level FROM serwery '; // główne zmienne $id = $rekord['id']; $nazwa = $rekord['nazwa']; $typ = $rekord['typ']; $max_level = $rekord['max_level']; } ?>
profil.php
<?php echo '<h2>Profil gracza:</h2>' $id = $_GET['id']; $zapytanie = 'SELECT * FROM serwery WHERE id='.$id; } ?>