Public paste
php
By: daanl | Date: Mar 31 2007 13:49 | Format: PHP | Expires: never | Size: 1.86 KB | Hits: 1427

  1. <html>
  2. <head>
  3. <title>
  4. </title>
  5. <head>
  6.   <style type="text/css">
  7.         #Container
  8.                 {
  9.                         width:  500px;
  10.                         background-color: purple;
  11.                 }
  12.         #Picture
  13.                 {
  14.                 }
  15.         #Info
  16.                 {
  17.                         width:  200px;
  18.                         height: 200px;
  19.                         background-color: red;
  20.                         margin-left: 400px;
  21.                         margin-top: -90%;
  22.                 }
  23.  </style>
  24. </head>
  25. <body>
  26. <?php
  27. include 'config.php';
  28.  
  29. mysql_select_db($dbname, $con);
  30.  
  31.  
  32. $sql = 'SELECT * FROM info2 ';
  33.  
  34.  
  35. $result = mysql_query($sql) or die('Fout bij uitvoeren query');
  36.  
  37.  
  38.        echo '<table border="1">';
  39.             echo '<tr>';
  40.              echo '<td>';
  41.              echo '<img src="5.jpg">';
  42.              echo '</td>';
  43.             echo '<td valign="top">';
  44.      
  45.  
  46.            while ($row = mysql_fetch_assoc($result))
  47.     {
  48.             echo '<table Border="2" width="300">';
  49.             echo '<tr>';
  50.             echo '<td width="100px">ID</td><td>'.$row['id'].'</td>';
  51.             echo '</tr>';
  52.             echo '<tr>';
  53.             echo '<td width="100px">DVD titel</td><td>'.$row['dvdtitel'].'</td>';
  54.             echo '</tr>';
  55.             echo '<tr>';
  56.             echo '<td width="100px">Speeltijd</td><td>'.$row['speeltijd'].'</td>';
  57.             echo '</tr>';
  58.             echo '<tr>';
  59.             echo '<td width="100px">Kwaliteit</td><td>'.$row['kwaliteit'].'</td>';
  60.             echo '</tr>';
  61.             echo '<tr>';
  62.             echo '<td width="100px">DVD versie</td><td>'.$row['dvdversie'].'</td>';
  63.             echo '</tr>';
  64.              echo '</table>';
  65.             echo '<table Border="2" width="300">';
  66.             echo '<tr>';
  67.             echo '<td width="100px">Kijkwijzer</td><td>'.$row['kijkwijzer'].'</td>';
  68.             echo '</tr>';
  69.             echo '<tr>';
  70.             echo '<td colspan="2" width="100px">Opmerking</td><td>'.$row['opmerking'].'</td>';
  71.             echo '</tr>';
  72.             echo '</table>';   
  73.  
  74.     }
  75.  
  76.         echo '</table>';
  77.  
  78.  
  79. ?>
  80.  
  81. </body>