Home > Backend Development > PHP Tutorial > php可以写入数据无法读取数据库(读取代码),求助!!!

php可以写入数据无法读取数据库(读取代码),求助!!!

WBOY
Release: 2016-06-23 14:14:08
Original
883 people have browsed it


include("conn.php");
?>



$sql="select * from message"; 

$query= mysql_query($sql);

while($row= mysql_fetch_array($query))
{
?>
  
    
    
  

    
  
  
  }
  ?>
用户: echo $row[user] ?> 标题: echo $row[title] ?>
内容: echo $row[content]?>













回复讨论(解决方案)


    用户: php echo $row[user] ?>
    标题: php echo $row[title] ?>
  

    内容: php echo $row[content]?>
  

楼上正解

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