Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <link rel="stylesheet" href="stylesheet.css">
- <title>View anzeigen</title>
- </head>
- <body>
- <h1>View anzeigen</h1>
- <?php
- $servername = "localhost";
- $username = "verkäufer";
- $password = "root";
- $dbname = "verkauf";
- // Create connection
- $conn = mysqli_connect($servername, $username, $password, $dbname);
- $sql=("SELECT * FROM `s1`");
- $result = $conn ->query($sql);
- echo '<table charset="utf-8 general_ci" border="0px" style="font-size: 16px;" width="60%">';
- echo '<tr><td style="border-top: thin solid;" colspan=7 align=\"center\"> </td></tr>';
- echo '<tr bgcolor="#91a8d0"><th><center>Artikel</center></th><th><center>Hersteller</center></th></tr>';
- while($row = $result->fetch_assoc()) {
- echo "<tr>";
- echo "<td align=\"center\">". $row["Artikel"] . "</td>";
- echo "<td align=\"center\">". $row["Herstller"] . "</td>";
- echo "</tr>";
- }
- echo '</table><br><br>';
- mysqli_close($conn);
- ?>
- <button class="button_rueck" style="vertical-align:middle" onclick="document.location='Start.php'"><span>Startseite</span></button
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement