C:\xampp\htdocs\kptv\ro\lastfive.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<html>
<head>
<link href="../style/style.css" rel="stylesheet" type="text/css">
<META HTTP-EQUIV="refresh" CONTENT="50">
</head>
<body>
<?php

require_once("../admin/dbconn.php");

$la mysql_query("SELECT * FROM lastfive ORDER BY date DESC LIMIT 5");
echo 
'<div id="last_five">';
$i "1";
while(
$myrow mysql_fetch_array($la)){
    echo 
'
        <div class="title5">'
.$i.'</div>
        <img src="images/icon.gif" alt="">
        <div class="tit5">
            <div class="title5">'
.substr($myrow['0'], 020).'</div>
            <div class="author5">
                '
.substr($myrow['1'], 020).'
            </div>
        </div>'
;
    
$i++;
}
echo 
'</div>';
?>
</body>
</html>
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586