if($search) { if($xuehao=="") { echo" 请填"/>
PHP头条
热点:

php查询数据库表有关问题


php查询数据库表问题




学生课题查询






//######################学生查询所选课题##########################
 include "config.php";
 include "header.php";?>
  if($search)
{
  if ($xuehao=="") 
 {
echo"请填写您的学号!

";
echo "";
exit;
 }  
 
 $query="select * from $student_table where xuehao='$xuehao'";
 mysql_query("set names 'gb2312'");
 $result=mysql_query($query);
 $row=mysql_fetch_array($result);
 if($row==0)
 {
echo"你还没有注册,或者你的输入有误,请重新输入!

";
echo "";
    exit;
 }
 
 $query="select id as sm from $student_table where xuehao='$xuehao'";
 mysql_query("set names 'gb2312'");
 $result=mysql_query($query);
 $row=mysql_fetch_array($result);
 if($row[sm]==0)
 {
echo"你还没有选择课题,请去选题!

";
echo "";
    exit;
 }
 ?>

   
   
       
        学生学号


      
    
     
      学生姓名
    
     
     课题名称     
     
      指导教师
    
     
    职称    
   
     $n=0; 
   $query=mysql_query("select * from $jiaoshi_table,$student_table where $jiaoshi_table.id=$student_table.id and $student_table.xuehao='$xuehao'");

www.phpzy.comtrue/phprm/6562.htmlTechArticlephp查询数据库表有关问题 php查询数据库表问题 学生课题查询 //######################学生查询所选课题########################## include"config.php"; include"header.php";?> if($search) { if($xuehao=="") { echo" 请填...

相关文章

相关频道:

PHP之友评论

今天推荐