function getConnection(){
        @mysql_connect("localhost","username","password") or die("无法连接数据库");
        @mysql_select_db("databasename") or die("未找到数据库");
    }
 
    getConnection();
    $query="select definition,accession,gi from birds_nucleotide order by definition limit 0,200";
    $result=mysql_query($query);
    if(!$result){
        echo "查询失败";
        return false;
    }
    $resultCount=mysql_num_rows($result);
    for ($count = 0; $count<$resultCount; $count++) {
        //处理...
        echo mysql_result($result, $count,"definition");
    }
        

 

相关文章:

  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
猜你喜欢
  • 2022-01-01
  • 2021-08-22
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2021-11-21
相关资源
相似解决方案