A forum for imitating Oso (ii) _php tutorial

Source: Internet
Author: User
read.php (used to display related topics)
<title>Difficult issues</title>

























if ($row [' Answer_count ']>5){echo " "; $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];?>
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" >
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





























$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 " ";echo " "; } ? >
For
Stakeholders
Within
Capacity
echo "Class=mid>";
echo $row [' name ']. "
";
echo "






"; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo "
echo "Src= ' Mypic/icon". $row [' Icon ']. ". GIF ' >Posted in: ". $row [' Time_open ']."
";
echo " ";
echo "
". $row [' content ']."
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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.