if ($cookiej2hbomb ==""){setcookie ("cookiej2hbomb",$REMOTE_ADDR, time()+86400*180,"/bbs/"); }
include "config.php";
include "../top.php";
$sql_select = "select * from $bbstitletable where id='$j2hnews'";
$result = mysql_query ($sql_select,$conID) or die ($sql_select);
$row = mysql_fetch_array($result) ;
$j2htotal=$row["j2htotal"]; ?>
【我要貼貼貼】
主題 | 作者 | 人氣 | 回應 | 轉寄 | 張貼日期 |
while ($i < $number){
$row = mysql_fetch_array($result);
$id=$row["id"];
$j2h=$row["j2h"];
$j2h2=$row["j2h2"];
$j2h3=$row["j2h3"];
$j2h6=$row["j2h6"];
$j2h7=$row["j2h7"];
$mail=$row["mail"];
$bad=$row["bad"];
$date=$row["date"];
$redate=$row["redate"];
$username=$row["username"];
$counter=$row["counter"];
if($i%2==0)
{
$entry_color = "ddf0ff";
} else {
$entry_color = "white";
}
$datestemp = mktime();
$post_date_string = date("Y-m-d",$date);
$reply_date_string = date("Y-m-d",$redate);
$now_date_string = date("Y-m-d",$datestemp);
if($post_date_string == $now_date_string) {
$new_post = " 新 ";
} else {
$new_post = "";
}
if($reply_date_string == $now_date_string && $date != $redate) {
$up_post = " 回 ";
} else {
$up_post = "";
}
?>
>
.html> echo substr("$j2h2",0,30); ?> echo "$new_post $up_post" ;?> |
if ($username !=""){echo "";
echo substr("$j2h",0,10); echo"";}else{echo substr("$j2h",0,10);}?> |
echo $j2h6 ;?> |
echo $counter ;?> |
echo $mail ;?> |
echo $post_date_string ;?> |
$i++;
}
?>
include "../downpage.php";
?>