Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $yhteys = mysql_connect('palvelin', 'tietokanta', 'salasana')
- or die("Kantaan ei saatu yhteyttä: ".mysql_error());
- mysql_select_db('kanta', $yhteys)
- or die("Kantaa ei saatu valittua: ".mysql_error());
- $tulos = mysql_query("SELECT * FROM perustiedot WHERE heppa_id LIKE '1'", $yhteys)
- or die("Kysely ei onnistunut: ". mysql_error());?>
- <h1><?php while($tieto = mysql_fetch_array($tulos)){
- echo $tieto['nimi'];};?>
- </h1>
- <table id="listaus">
- <tr>
- <td class="tieto">Rotu, sukupuoli</td><td><?php echo $tieto['rotu'];?> </td>
- <td class="tieto">Säkäkorkeus</td><td> <?php echo $tieto['sakakorkeus'];;?> </td>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement