Home > Backend Development > PHP Tutorial > 自学麻烦多多,mysql中数据输出显示不出来。各位帮忙看上

自学麻烦多多,mysql中数据输出显示不出来。各位帮忙看上

WBOY
Release: 2016-06-13 10:50:47
Original
872 people have browsed it

自学麻烦多多,mysql中数据输出显示不出来。各位帮忙看下!
include("conn.php"); //链接数据库

?>


  $sql="select * form message";
  $query=mysql_query($sql);
while($row=mysql_fetch_array($query)){ //while循环输出数据库中中的 标题、用户、内容
?>
 
 
 
 
 
 
 
}
  ?>
 
  
标题:=echo $row[title]?>用户:=$row[user]?>
内容:=echo $row[content]?>


------解决方案--------------------
类似这样的先修改
=echo $row[title]?>用户:=$row[user]?>



然后看看是否OK.
------解决方案--------------------
短标签没有开启就要用,楼上的写法。
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