Advertisement
Guest User

Untitled

a guest
Dec 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. <html>
  2. <head>
  3.  
  4. <?php
  5. $connect=new mysqli("localhost","root","","3tia");
  6.  
  7. if($connect->connect_error)
  8. {
  9. echo "komunikat bledu"." ".connect_error;
  10. echo "kod bledu"." ".connect_errno;
  11. }else{
  12. echo "jestem tu";
  13.  
  14. if($_GET['parametr']=="wyswietl")
  15. {
  16. <<<alias
  17. <table style="border-style=solid; border-width=3px;">
  18. <tr>
  19. <td>licencja_id</td>
  20. <td>numer_licencji</td>
  21. <td>kod_licencji</td>
  22. </tr>
  23. alias;
  24. $query="SELECT * FORM licencja";
  25. $result=$connect->query($query);
  26.  
  27. while($row=$result->fetch_object())
  28. {
  29. <<<h1
  30. <tr>
  31. <td>$licencja_id</td>
  32. <td>$numer_licencji</td>
  33. <td>$kod_licencji</td>
  34. </tr>
  35. h1;
  36. }
  37. <<<ni
  38. <input type=hidden value=identyfikator>
  39. <input type=number value=identyfikator name=identyfikator>
  40. ni;
  41. echo "</table>";
  42. }
  43. }
  44. $connect->connect_close();
  45. ?>
  46.  
  47.  
  48.  
  49. </head>
  50. <body>
  51. <a href="index.php/?parametr=wyswietl">wyswietl</a>
  52. </body>
  53. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement