Recent Posts
VB.NET | 2 sec ago
None | 7 sec ago
None | 15 sec ago
None | 30 sec ago
None | 1 min ago
None | 1 min ago
None | 2 min ago
JavaScript | 2 min ago
None | 2 min ago
None | 2 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By Anonymous on the 9th of Feb 2010 10:16:17 PM Download | Raw | Embed | Report
  1.                                         <?php
  2.                                                 mysql_query("SET CHARACTER_SET_RESULTS=utf8");
  3.                                                
  4.                                                 date_default_timezone_set('Europe/Stockholm');
  5.                                                 $s = date("H:i:s");
  6.                                        
  7.                                         ?>
  8.    
  9.    
  10.                         <?php
  11.  
  12.                                  $sql = mysql_query("SELECT * FROM `link` ORDER BY `id` DESC LIMIT 10") or die (mysql_error()); ?>
  13.  
  14.                 <?php while($row = mysql_fetch_array($sql)): ?>
  15.  
  16.                         <div class="links">
  17.                                
  18.                             · <img src="image/video.png" style="width:15px; height:15px;" />
  19.                                                        
  20.                                 <a href="<?php echo $row['url'] ?>"target="_blank">
  21.                                                        
  22.                                                         <?php echo $row['name'] ?>
  23.                              
  24.                                                                 <br />
  25.                                
  26.                                                                 &nbsp; &nbsp; - <a href="#">49 Kommentarer,</a>
  27.                                  
  28.                                                                 tips av: <?php echo $row['author'] ?>. kl:
  29.  
  30.                                                                 <?php echo $row['date'] ?>
  31.                                                         </p>
  32.  
  33.                                                         <p>
  34.  
  35.                                                 <?php echo $row['text'] ?><br />
  36.                                
  37.                                         </p>
  38.  
  39.                                 </div>
  40.  
  41.                 <?php endwhile ?>
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: