daily pastebin goal
39%
SHARE
TWEET

Untitled

a guest Mar 25th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. HEVOSET.PHP --
  2.  
  3. <?php include_once("../yhteys.php");
  4. include_once("../cyla.php");
  5.  header("Content-Type: text/html; charset=ISO-8859-1");
  6.  
  7.  $kaikkiorit = "SELECT * FROM cresthill WHERE skp = '1'  ORDER BY nimi ASC";
  8.  $korit = $link->query($kaikkiorit) or die($link->error);
  9.  $kaikkitammat = "SELECT * FROM cresthill WHERE skp = '2' ORDER BY nimi ASC";
  10.  $ktammat = $link->query($kaikkitammat) or die($link->error);
  11. ?>
  12. <link rel="stylesheet" href="http://kanelipulla.net/aeston/lay/style.css">
  13. <style>tr:hover {    background: rgba(255,255,255,0.5);} td {border-bottom:1px dashed #cecece; padding:5px;}</style>
  14. <div class="sisalto">
  15. <table width="100%">
  16.   <tr>
  17.     <td width="25%"><a href="jalkelaiset.php">Lis&auml;&auml; j&auml;lkel&auml;inen</a></td>
  18.     <td width="25%"><a href="kuvat.php">Lis&auml;&auml; kuvat</a></td>
  19.     <td width="25%"><a href="paikyt.php">Lis&auml;&auml; p&auml;iv&auml;kirjamerkint&auml;</a></td>
  20.     <td width="25%"><a href="saavutukset.php">Lis&auml;&auml; saavutus</a></td>
  21.   </tr>
  22. </table>
  23. <br><b>Katso alta ID jonka tarvitsee yll&auml;olevien lomakkeiden t&auml;ytt&auml;miseen.</b>
  24. <br><br><br><hr>
  25.  
  26. <form action="lisaahevonen.php" method="post">
  27. <input type="submit" value="Lis&auml;&auml; uusi hevonen" name="lisaaminen" />
  28. </form>
  29.  
  30.                     <h2> Orit </h2>
  31. <table width="100%">
  32.  <tr>
  33.   <td widht="5%">ID</td>
  34.   <td width="70%">Nimi</td>
  35.   <td width="25%">Status</td>
  36.  <?php
  37.  
  38.  while($orit = mysqli_fetch_array($korit)) {
  39.  
  40.   echo "<tr>";
  41.   echo "<td> {$orit['p_id']}</td>";
  42.    echo "<td> <a href=\"muokkaahevosta.php?id={$orit['p_id']}\">{$orit['nimi']}</a> </td>";
  43.    echo "<td> {$orit['status']}</td>";
  44.   echo "</tr>";
  45.  }
  46.  ?>
  47. </table>
  48. <br><hr><br>
  49. <h2> Tammat </h2>
  50. <table width="100%">
  51.  <tr>
  52.   <td widht="5%">ID</td>
  53.   <td width="70%">Nimi</td>
  54.   <td width="25%">Status</td>
  55.  <?php
  56.  
  57.  while($tammat = mysqli_fetch_array($ktammat)) {
  58.  
  59.  
  60.   echo "<tr>";
  61.   echo "<td> {$tammat['p_id']}</td>";
  62.    echo "<td> <a href=\"muokkaahevosta.php?id={$tammat['p_id']}\">{$tammat['nimi']}</a> </td>";
  63.    echo "<td> {$tammat['status']}</td>";
  64.   echo "</tr>";
  65.  }
  66.  
  67.   ?>
  68. </table>
  69.  
  70.  
  71.  
  72. </div>
  73. </div>
  74. <?php
  75. include_once("../cala.php");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top