Home > Backend Development > PHP Tutorial > BBS (php & mysql) full version (2)_PHP tutorial

BBS (php & mysql) full version (2)_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-21 16:05:28
Original
927 people have browsed it

//此页面为look.php
include "signup/mysql.inc";
$sql="select * from ".$table." where id='$id'";
$result=mysql_query($sql)or die(mysql_error());
$row=mysql_fetch_array($result);
$number=++$row["number"];

$sql="update $table set number='$number' where id='$id'";
mysql_query($sql)or die(mysql_error());




?>



xiaoyang


include "js/menuhead.php"
?>






include "js/menu.php";
?>






  

    
        

      

      
      
        
        

      
      
        
        

      
      
    
  
        
题目

        

        

      
  
          
作者

        
  
        

      
  
          
内容

        

        
for($i=0 ;$i<$num;$i++) echo " ".$file[$i]."
";?>

      





   

for($j=1;$j<6;$j++) //显示回复内容
{
$re="r".$j;
if($row["$re"])
{
$id2=$row["$re"];
$sql="select * from bbs_re where id='$id2'";
$result=mysql_query($sql)or die(mysql_error());
$row8=mysql_fetch_array($result);
echo "
";
   echo "   ";         
   echo "                ";  
   echo "";
   echo " ";  
   echo "       
         
题目
";
   echo "     
";
   echo "
".$row8["title"]."
      
";  
   echo "
作者
";  
   echo "
".$row8["userid"]."
内容
";
   echo "
";
   echo "
"; $file=explode("n",$row8["content"]);
   $num=count($file);
    for($i=0 ;$i<$num;$i++) echo " ".$file[$i]."
";
    echo "
";
   echo "   
";
    }
   }

   ?>





  
  


  
  


  


  
  

 


 




www.bkjia.comtruehttp://www.bkjia.com/PHPjc/315706.htmlTechArticle//此页面为look.php ? include signup/mysql.inc; $sql=select * from .$table. where id='$id'; $result=mysql_query($sql)or die(mysql_error()); $row=mysql_fetch_array($result); $numb...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template