Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <html>
  2.  
  3. <head>
  4. <title> wynik wyszukiwania </title>
  5.  
  6. </head>
  7.  
  8. <body>
  9.  
  10. <table border="1" width="98%" cellspacing="0" cellpadding="0" bordercolorlight="#000000">
  11. <tr>
  12. <td width="42%" colspan="6" bgcolor="#C0C0C0">
  13. <p align="center"><b><font size="2">Ksiazki w bazie </font></b>
  14. </td>
  15. </tr>
  16.  
  17. <tr>
  18. <td width="6%" align="center" bgcolor="#E0E0E0">
  19. <p align="center"><font size="2">bookID</font>
  20. </td>
  21.  
  22. <td width="18%" align="center" bgcolor="#E0E0E0">
  23. <p align="center"><font size="2">szerokosc</font>
  24. </td>
  25.  
  26. <td width="18%" align="center" bgcolor="#E0E0E0">
  27. <font size="2">wysokosc</font>
  28. </td>
  29.  
  30. </tr>
  31.  
  32.  
  33. <?php
  34. $user = "";
  35. $pass = "";
  36.  
  37. mysql_connect("",$user,$pass);
  38. mysql_select_db(db1039447);
  39.  
  40. $znajdz = $_GET['wysokosc_imput'];
  41.  
  42.  
  43. $zapytanie = " SELECT * FROM books01 WHERE wysokosc = '$znajdz'";
  44. $z_bazy = mysql_query($zapytanie);
  45. while($wirsztabeli = mysql_fetch_array($z_bazy))
  46. {
  47. echo " <tr>
  48. <td width=\"6%\"> $wirsztabeli[bookID] </td>
  49. <td width=\"18%\"> $wirsztabeli[szerokosc] </td>
  50. <td width=\"18%\"> $wirsztabeli[wysokosc] </td>
  51. </tr>";
  52. }
  53.  
  54.  
  55. mysql_close();
  56.  
  57. ?>
  58.  
  59. </table>
  60. </body>
  61. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement