Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo("Dodano rezerwacje do bazy");
- $servername = "localhost";
- $username = "root";
- $password = "";
- // Create connection
- $conn = mysqli_connect($servername, $username, $password);
- mysqli_select_db($conn, 'baza');
- $data = $_POST['xd1'];
- $ileosob = $_POST['xd2'];
- $tele = $_POST['xd3'];
- $query = "insert into rezerwacje (`data_rez`, `liczba_osob`, `telefon`) values('$data', '$ileosob', '$tele');";
- mysqli_query($conn, $query);
- mysqli_close($conn);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement