Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HEVOSET.PHP --
- <?php include_once("../yhteys.php");
- include_once("../cyla.php");
- header("Content-Type: text/html; charset=ISO-8859-1");
- $kaikkiorit = "SELECT * FROM cresthill WHERE skp = '1' ORDER BY nimi ASC";
- $korit = $link->query($kaikkiorit) or die($link->error);
- $kaikkitammat = "SELECT * FROM cresthill WHERE skp = '2' ORDER BY nimi ASC";
- $ktammat = $link->query($kaikkitammat) or die($link->error);
- ?>
- <link rel="stylesheet" href="http://kanelipulla.net/aeston/lay/style.css">
- <style>tr:hover { background: rgba(255,255,255,0.5);} td {border-bottom:1px dashed #cecece; padding:5px;}</style>
- <div class="sisalto">
- <table width="100%">
- <tr>
- <td width="25%"><a href="jalkelaiset.php">Lisää jälkeläinen</a></td>
- <td width="25%"><a href="kuvat.php">Lisää kuvat</a></td>
- <td width="25%"><a href="paikyt.php">Lisää päiväkirjamerkintä</a></td>
- <td width="25%"><a href="saavutukset.php">Lisää saavutus</a></td>
- </tr>
- </table>
- <br><b>Katso alta ID jonka tarvitsee ylläolevien lomakkeiden täyttämiseen.</b>
- <br><br><br><hr>
- <form action="lisaahevonen.php" method="post">
- <input type="submit" value="Lisää uusi hevonen" name="lisaaminen" />
- </form>
- <h2> Orit </h2>
- <table width="100%">
- <tr>
- <td widht="5%">ID</td>
- <td width="70%">Nimi</td>
- <td width="25%">Status</td>
- <?php
- while($orit = mysqli_fetch_array($korit)) {
- echo "<tr>";
- echo "<td> {$orit['p_id']}</td>";
- echo "<td> <a href=\"muokkaahevosta.php?id={$orit['p_id']}\">{$orit['nimi']}</a> </td>";
- echo "<td> {$orit['status']}</td>";
- echo "</tr>";
- }
- ?>
- </table>
- <br><hr><br>
- <h2> Tammat </h2>
- <table width="100%">
- <tr>
- <td widht="5%">ID</td>
- <td width="70%">Nimi</td>
- <td width="25%">Status</td>
- <?php
- while($tammat = mysqli_fetch_array($ktammat)) {
- echo "<tr>";
- echo "<td> {$tammat['p_id']}</td>";
- echo "<td> <a href=\"muokkaahevosta.php?id={$tammat['p_id']}\">{$tammat['nimi']}</a> </td>";
- echo "<td> {$tammat['status']}</td>";
- echo "</tr>";
- }
- ?>
- </table>
- </div>
- </div>
- <?php
- include_once("../cala.php");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement