read.php (used to display related topics)
<title>Difficult issues</title>
Topics: color= #993333 > Include "connect.inc.php"; $query = "SELECT * from Guestbook where id=". $theme _id; $res = mysql_query ($query); $row = Mysql_fetch_array ($res); echo $row [' theme ']; ?>
|
href= "post.php" > Border=0 src= "Mypic/post.gif" > "> Border=0 src= "Mypic/reply.gif" > href= "faq.php?page=1" > border=0 src= "Mypic/theme.gif" > |
if ($row [' Answer_count ']>5){echo "
Paging: "; for ($j =1; $j <= ($row [' Answer_count ']-1)/5+1; $j + +) { if ($j = = $page) echo "[". $j. "]"; else echo ""; }} echo "Shared posts". $row [' Answer_count ']. " A | "; $this _id= $row [' id ']; $query = "SELECT id from Guestbook where id<". $this _id. "And type=1 the ORDER by ID DESC"; $res = mysql_query ($query); $row = Mysql_fetch_row ($res); $pre _id= $row [0]; $query = "SELECT id from Guestbook where id>". $this _id. "And type=1 the Order by id"; $res = mysql_query ($query); $row = Mysql_fetch_row ($res); $next _id= $row [0];?>
For Stakeholders |
Within Capacity |
$query = "SELECT * from Guestbook where main_id=". $theme _id. "or id=". $theme _id. ' ORDER by Time_open DESC limit '. Strval (( $page-1). ", 5";$res = mysql_query ($query);function Tdbackcolor () {Static $ColorStr;if ($ColorStr = = "#ededed") {$COLORSTR = "#dedede";} else {$COLORSTR = "#ededed";}return ($COLORSTR);}for ($i =1; $i <=5; $i + +){$row = @mysql_fetch_array ($res);if (! $row) break;$ColorStr =tdbackcolor ();echo "
"; echo "
echo "Class=mid>"; echo $row [' name ']. " | "; echo "
"; echo "
"; echo "
"; echo "
"; echo "
echo "Src= ' Mypic/icon". $row [' Icon ']. ". GIF ' > | "; echo "
Posted in: ". $row [' Time_open ']." | "; echo "
|
"; echo "
"; echo "
"; echo " "; echo " |
". $row [' content ']." |
";echo "
"; } ? >
|
href= "read.php?theme_id= &page=1" > color= #ffffff > Previous topic href= "Read.php?theme_id= &page=1" > color= #ffffff > Next Topic |
|
http://www.bkjia.com/PHPjc/316715.html www.bkjia.com true http://www.bkjia.com/PHPjc/316715.html techarticle read.php (used to display related topics) Htmlheadtitle difficult problem/title LINK href=mypic/style.css rel=stylesheet type=text/css/head BODY bgcolor= #cccc99 bottommargin=0 leftmargin=0 ...