pastebin
| #1 paste tool since 2002
create new paste
tools
api
archive
real-time
faq
pastebin
Follow @pastebin
create new paste
trending pastes
sign up
login
my settings
my profile
My Pastes
Public Pastes
Untitled
0 sec ago
Untitled
10 sec ago
C++ Class Serialization...
3 sec ago
Untitled
C | 4 sec ago
Facebook Hack Feb.2012 ...
9 sec ago
Untitled
6 sec ago
Untitled
7 sec ago
Untitled
7 sec ago
Layout Width
Share Pastebin
Untitled
By: a guest | Feb 9th, 2010 | Syntax:
PHP
| Size: 1.17 KB | Hits: 27 | Expires: Never
Download
|
Raw
|
Embed
|
Report abuse
<?php
mysql_query
(
"SET CHARACTER_SET_RESULTS=utf8"
)
;
date_default_timezone_set
(
'Europe/Stockholm'
)
;
$s
=
date
(
"H:i:s"
)
;
?>
<?php
$sql
=
mysql_query
(
"SELECT * FROM `link` ORDER BY `id` DESC LIMIT 10"
)
or
die
(
mysql_error
(
)
)
;
?>
<?php
while
(
$row
=
mysql_fetch_array
(
$sql
)
)
:
?>
<div class="links">
· <img src="image/video.png" style="width:15px; height:15px;" />
<a href="
<?php
echo
$row
[
'url'
]
?>
"target="_blank">
<?php
echo
$row
[
'name'
]
?>
<br />
- <a href="#">49 Kommentarer,</a>
tips av:
<?php
echo
$row
[
'author'
]
?>
. kl:
<?php
echo
$row
[
'date'
]
?>
</p>
<p>
<?php
echo
$row
[
'text'
]
?>
<br />
</p>
</div>
<?php
endwhile
?>
create new paste
|
create new version of this paste
RAW Paste Data