php查询数据库表有关问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBオリジナル
2016-06-13 11:25:35810ブラウズ

php查询数据库表问题

nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br><br><br><meta><br><title>学生课题查询</title><br><style><br /><!--<br />.STYLE1 {font-size: 14px}<br />--><br /></style><br><br><br><br><?php <br />//######################学生查询所选课题##########################<br> include "config.php";<br> include "header.php";?><br> <br>if($search)<br>{<br>  if ($xuehao=="") <br> {<br>	echo"<p><font><b><big>请填写您的学号!</big></b></font></p>";<br>	echo "<meta>";<br>	exit;	<br> }  <br> <br> $query="select * from $student_table where xuehao='$xuehao'";<br> mysql_query("set names 'gb2312'");<br> $result=mysql_query($query);<br> $row=mysql_fetch_array($result);<br> if($row==0)<br> {<br>	echo"<p><font><b><big>你还没有注册,或者你的输入有误,请重新输入!</big></b></font></p>";<br>	echo "<meta>";<br>    exit;<br> }<br> <br> $query="select id as sm from $student_table where xuehao='$xuehao'";<br> mysql_query("set names 'gb2312'");<br> $result=mysql_query($query);<br> $row=mysql_fetch_array($result);<br> if($row[sm]==0)<br> {<br>	echo"<p><font><b><big>你还没有选择课题,请去选题!</big></b></font></p>";<br>	echo "<meta>";<br>    exit;<br> }<br> ?><br>

   
  
    
    
    
    
   
   
  $n=0; 
   $query=mysql_query("select * from $jiaoshi_table,$student_table where $jiaoshi_table.id=$student_table.id and $student_table.xuehao='$xuehao'");
 
      
 
        

学生学号


      

    
 
      
学生姓名

    
 
    
 课题名称 
    
 
      
指导教师

    
 
    
职称
    
声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。