z gory dzieki za pomoc

<?php function InsertRecord( $aFirstName, $aLastName, $aAddr, $aPos ) { $aSQL = \"insert into employees ( first, last, address, position ) values\"; $aSQL .= \"( '$aFirstName', '$aLastName', '$aAddr', '$aPos' )\"; { { if ( $aQResult == True ) { } else { $aResult = -1; } } else { $aResult = -2; } } else { $aResult = -3; } return $aResult; } ?> <html> <head> <title>Przykład MySQL: Wstawianie danych do bazy </title> </head> <body> <?php if ($REQUEST_METHOD == \"POST\") { // Nastąpiło przesłanie danych formularza $aResult = InsertRecord( $_POST['FirstName'], $_POST['LastName'], $_POST['Address'], $_POST['Position']); if ( $aResult > 0 ) { } else { } } ?> <div align=\"center\"> Proszę wpisać dane nowego pracownika:<br> Imię: <input type=\"text\" name=\"FirstName\" maxlength=\"20\"><br> Nazwisko: <input type=\"text\" name=\"LastName\" maxlength=\"20\"><br> Adres: <input type=\"text\" name=\"Address\" maxlength=\"255\"><br> Stanowisko: <input type=\"text\" name=\"Position\" maxlength=\"50\"><br> <input type=\"submit\" name=\"Submit\" value=\"Wyslij\"><br> </form> </div> </body> </html>