|
|
$qry = "select no, title,addfile, writer, wdate, step,refnum,visit, curdate()-wdate as term from board where gubun='01' order by refnum desc, step asc limit 0,3";
$rows = $conn->fetch_array($qry);
if ($rows!=-1) {
for($i=0; $i
echo "".cutstr(stripslashes($rows[$i][title]),30,'...')."";
if ($rows[$i][term]<3) echo "";
?>
|
[=$rows[$i][wdate]?>] |
|
}}?>
|
|
$data = $conn->fetch_one("select idx from products order by idx desc limit 1", "idx");
if ($data!=-1) {
$img = existImage('product_'.$data, 'product_img/');
?>
|
|
} else {
echo " | ";
}
?>
|
|
|
|