Public paste
php
By: daanl | Date: Mar 31 2007 14:15 | Format: PHP | Expires: never | Size: 1.55 KB | Hits: 2087

  1. <?php
  2. include 'config.php';
  3.  
  4. $sql = 'select * from info2 where id = '. $_GET['id'];
  5.  
  6. $result = mysql_query($sql) or die('Fout bij uitvoeren query');
  7.  
  8.  
  9.        echo '<table border="1">';
  10.             echo '<tr>';
  11.              echo '<td>';
  12.              echo '<img src="'.$row['id'].'.jpg">';
  13.              echo '</td>';
  14.             echo '<td valign="top">';
  15.      
  16.            while ($row = mysql_fetch_assoc($result))
  17.     {
  18.  
  19.  
  20.             echo '<table Border="2" width="300">';
  21.             echo '<tr>';
  22.             echo '<td width="100px">ID</td><td>'.$row['id'].'</td>';
  23.             echo '</tr>';
  24.             echo '<tr>';
  25.             echo '<td width="100px">DVD titel</td><td>'.$row['dvdtitel'].'</td>';
  26.             echo '</tr>';
  27.             echo '<tr>';
  28.             echo '<td width="100px">Speeltijd</td><td>'.$row['speeltijd'].'</td>';
  29.             echo '</tr>';
  30.             echo '<tr>';
  31.             echo '<td width="100px">Kwaliteit</td><td>'.$row['kwaliteit'].'</td>';
  32.             echo '</tr>';
  33.             echo '<tr>';
  34.             echo '<td width="100px">DVD versie</td><td>'.$row['dvdversie'].'</td>';
  35.             echo '</tr>';
  36.              echo '</table>';
  37.             echo '<table Border="2" width="300">';
  38.             echo '<tr>';
  39.             echo '<td width="100px">Kijkwijzer</td><td>'.$row['kijkwijzer'].'</td>';
  40.             echo '</tr>';
  41.             echo '<tr>';
  42.             echo '<td colspan="2" width="100px">Opmerking</td><td>'.$row['opmerking'].'</td>';
  43.             echo '</tr>';
  44.             echo '</table>';   
  45.  
  46.     }
  47.  
  48.         echo '</table>';
  49.  
  50.  
  51. ?>
  52.  
  53. </body>