Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.42 KB | None | 0 0
  1. <html>
  2. <head>
  3. <style>
  4. .wysrodkowanie {
  5.     width: 751px;
  6.     margin: 0 auto;
  7.     padding: 0 auto;
  8.     margin-top: 50px;
  9. }
  10. .pola {
  11.     width: 750px;
  12.     padding: 10px;
  13.     border-radius: 10px;
  14.     box-shadow: 1px;
  15.     font-size: 20px;
  16.     margin-bottom: 5px;
  17. }
  18.  
  19. @keyframes myfirst {
  20.     0%   {background: red;}
  21.     25%  {background: yellow;}
  22.     50%  {background: blue;}
  23.     100% {background: green;}
  24. }
  25.  
  26. </style>
  27.  
  28. <meta charset="UTF-8"></head>
  29. <body>
  30. <div class="wysrodkowanie">
  31. <input name="costam" type="text" placeholder="Opsilion" class="pola" />
  32. <input name="costam2" type="text" placeholder="Alpha" class="pola" />
  33. <input name="costam3" type="text" placeholder="Beta" class="pola" />
  34. <input name="costam4" type="text" placeholder="Gamma" class="pola" />
  35. <input name="costam5" type="text" placeholder="Delta" class="pola" />
  36. <input type='submit' name="dodawanie" value='Dodaj do bazy danych'>
  37. </div>
  38.  
  39.  
  40.  
  41.  
  42.  
  43. <?php
  44.  
  45. mysql_connect('localhost','root','') or die ('Padl serwer');
  46. mysql_select_db('nauka') or die ('Padla baza');
  47. $tresc_zapytania=mysql_query('select *from imiona');
  48.  
  49.  
  50.  
  51. echo '<br />';
  52. echo '<table border="1px"><thead><th>Id</th><th>Imie</th><th>Edycja</th></thead><tbody>';
  53. while($txt=mysql_fetch_assoc($tresc_zapytania))
  54.  
  55. {
  56. echo '<tr><td>'.$txt['id'].'</td> <td>'.$txt['imie'].'</td> <td><input type="submit" name="edycja" value="Modyfikuj"> </td></tr>';
  57. }
  58. echo '</table>';
  59. ?>
  60.  
  61. </tbody>
  62. </table>
  63. </body>
  64. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement