include "../../left.html";?>
|
 |
 |
|
 |
 |
=$title_img?> |
 |
$result=mysql_query("select * from $tname where num=$Snum");
$row=mysql_fetch_array($result);
$title=stripslashes($row[title]);
?>
Á¦
¸ñ |
=$title?>
|
³¯
Â¥ |
$writeday=substr($row[writeday],0,10); echo($writeday);?>
|
Á¶È¸¼ö |
=$row[readnum]?>
|
$content=ereg_replace(chr(13)," ",$row[content]);
$content=stripslashes($content);
?>
=$content?>
|
 |
if($sel != "" )
{
switch($sel)
{
case "1" :
$where = "and (title like '%$keywords%' or content like '%$keywords%' )";
break;
case "2" :
$where = "and title like '%$keywords%' ";
break;
case "4" :
$where = "and content like '%$keywords%' ";
break;
}
}
//ÀÌÀü±Û
$psqlq=mysql_query("select MAX(num) from $tname where num < '$row[num]' $where order By num desc");
$p=mysql_fetch_array($psqlq);
//´ÙÀ½±Û
$nsqlq=mysql_query("select MIN(num) from $tname where num > '$row[num]' $where order By num desc");
$n=mysql_fetch_array($nsqlq);
?>
}?>
}?>
|
}
else{
?>
}?>
}?>
if(trim($row[ip])!=getenv('REMOTE_ADDR')){
mysql_query("update $tname set readnum=readnum+1 where num=$Snum");
}
}
?>
|
|
|
 |
|
|