This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 30th, 2010  |  syntax: PHP  |  size: 1.00 KB  |  views: 101  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. #require 'opsatning/top.php';
  3.  
  4.  
  5. ?>
  6. <!--[if IE]>
  7. <style>
  8. .arrow { top: 100%; };
  9. </style>
  10.  
  11. <![endif]-->
  12. <div id="content_indhold">
  13. <?php
  14.         $mysql = connect();
  15.         $stmt = $mysql->prepare("SELECT id,billed_sti,overskrift,indhold,brugernavn,dato FROM nyheder ORDER BY id DESC");
  16.         $stmt->bind_result($id, $billed_sti, $overskrift, $indhold, $brugernavn, $dato);
  17.         $stmt->execute();
  18.        
  19.  
  20.         while($stmt->fetch()) {
  21.                        
  22.                
  23. ?>
  24.  
  25.  
  26. <div class="nyhederRamme2">
  27.  
  28. <h1><a href="vis.nyheder.php?id=<?php echo $id; ?>"><?php echo $overskrift; ?></a><span class="arrow"></span></h1>
  29. <br />
  30.  
  31.  
  32.         <a href="vis.nyheder.php?id=<?php echo $id; ?>"><img style="float:left; margin-right:5px;" src="images/nyheder/<?php echo $billed_sti; ?>" /></a>
  33.  
  34.    
  35.     <a href="vis.nyheder.php?id=<?php echo $id; ?>"><?php echo substr($indhold,0,700); ?></a>
  36.  
  37.  
  38. </div><!-- ramme -->
  39.  
  40.  
  41. <?php
  42. }#Lukker while
  43. ?>
  44. </div><!-- content_indhold -->
  45. <?php
  46. #require 'opsatning/bund.php';
  47. ?>
clone this paste RAW Paste Data