Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title> wynik wyszukiwania </title>
- </head>
- <body>
- <table border="1" width="98%" cellspacing="0" cellpadding="0" bordercolorlight="#000000">
- <tr>
- <td width="42%" colspan="6" bgcolor="#C0C0C0">
- <p align="center"><b><font size="2">Ksiazki w bazie </font></b>
- </td>
- </tr>
- <tr>
- <td width="6%" align="center" bgcolor="#E0E0E0">
- <p align="center"><font size="2">bookID</font>
- </td>
- <td width="18%" align="center" bgcolor="#E0E0E0">
- <p align="center"><font size="2">szerokosc</font>
- </td>
- <td width="18%" align="center" bgcolor="#E0E0E0">
- <font size="2">wysokosc</font>
- </td>
- </tr>
- <?php
- $user = "";
- $pass = "";
- mysql_connect("",$user,$pass);
- mysql_select_db(db1039447);
- $znajdz = $_GET['wysokosc_imput'];
- $zapytanie = " SELECT * FROM books01 WHERE wysokosc = '$znajdz'";
- $z_bazy = mysql_query($zapytanie);
- while($wirsztabeli = mysql_fetch_array($z_bazy))
- {
- echo " <tr>
- <td width=\"6%\"> $wirsztabeli[bookID] </td>
- <td width=\"18%\"> $wirsztabeli[szerokosc] </td>
- <td width=\"18%\"> $wirsztabeli[wysokosc] </td>
- </tr>";
- }
- mysql_close();
- ?>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement