Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <?php
- $connect=new mysqli("localhost","root","","3tia");
- if($connect->connect_error)
- {
- echo "komunikat bledu"." ".connect_error;
- echo "kod bledu"." ".connect_errno;
- }else{
- echo "jestem tu";
- if($_GET['parametr']=="wyswietl")
- {
- <<<alias
- <table style="border-style=solid; border-width=3px;">
- <tr>
- <td>licencja_id</td>
- <td>numer_licencji</td>
- <td>kod_licencji</td>
- </tr>
- alias;
- $query="SELECT * FORM licencja";
- $result=$connect->query($query);
- while($row=$result->fetch_object())
- {
- <<<h1
- <tr>
- <td>$licencja_id</td>
- <td>$numer_licencji</td>
- <td>$kod_licencji</td>
- </tr>
- h1;
- }
- <<<ni
- <input type=hidden value=identyfikator>
- <input type=number value=identyfikator name=identyfikator>
- ni;
- echo "</table>";
- }
- }
- $connect->connect_close();
- ?>
- </head>
- <body>
- <a href="index.php/?parametr=wyswietl">wyswietl</a>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement