Home > Backend Development > PHP Tutorial > php读取数据库中表有关问题

php读取数据库中表有关问题

WBOY
Release: 2016-06-13 12:46:00
Original
845 people have browsed it

php读取数据库中表问题
运行结果如下图,貌似只有前24行有问题。如果读取数据库表正常,每一栏里应该显示数据库当中的内容。

<?php <br />
//######################课题详细信息##########################<br>
  include "config.php";<br>
  include "header.php";?><br>
<title>课题详细信息</title><br>
<style><br />
<!--<br />
.STYLE1 {<br />
	font-size: 16px;<br />
	color: #FF0000;<br />
}<br />
.STYLE2 {font-size: 14px}<br />
.STYLE3 {font-size: 12px}<br />
--><br />
</style><br>
<p><br>
</p><br>
<?php <br />
<br>
        $query="select * from $jiaoshi_table where id='".$id."'";<br>
		mysql_query("set names 'GB2312'");<br>
		$result=mysql_query($query);<br>
		$row=mysql_fetch_array($result);<br>
?><br>
<br>
Copy after login

  
  
     
      

    
 
      
      
    
     
      
      
    
 
      
      
    
 
      
      
>>>课题信息

        
课题编号:

      
 "  readonly="readonly">
      

        
课题名称:

      
 " readonly="readonly">
      

        
指导教师姓名:

      
 " readonly="readonly">      

        
指导教师职称:

      
 " readonly="readonly">      
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