Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $servername = "localhost";
- $username = "root";
- $password = "";
- $dbname = "vipser";
- // Create connection
- $conn = new mysqli($servername, $username, $password, $dbname);
- // Check connection
- if ($conn->connect_error) {
- die("Connection failed: " . $conn->connect_error);
- }
- $sql = ("SELECT * FROM `a_info` WHERE `pax`='" . $_GET['pax'] . "' and `nereden`='" . $_GET['durum'] . "' and `nereye`='" . $_GET['gdurum'] . "'");
- $result = $conn->query($sql);
- if ($result->num_rows > 0) {
- echo "<table>";
- while ($row = $result->fetch_array()) {
- echo "<tr>";
- echo "<td>" . $row['pax'] . "</td>";
- echo "<td>" . $row['a_cinsi'] . "</td>";
- echo "<td>" . $row['nereden'] . "</td>";
- echo "<td>" . $row['nereye'] . "</td>";
- echo "<td>" . $row['saat'] . "</td>";
- echo "<td>" . $row['km'] . "</td>";
- echo "<td>" . $row['fiyat'] . "</td>";
- echo '<td><img src="' . $row["a_resmi"] . '" width="75" height="75"/></td>';
- echo "</tr>";
- }
- echo "</table>";
- }
- else {
- echo "0 results";
- }
- $conn->close(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement