$result = mysql_query("select * from job where url<>'' order by class desc", $db);
$row=mysql_fetch_array($result)

解决方案 »

  1.   

    $result = mysql_db_query("database","select * from table")
    example:
    <?php
    mysql_connect($host,$user,$password);
    $result = mysql_db_query("database","select * from table");
    while($row = mysql_fetch_array($result)) {
      echo $row["user_id"];
      echo $row["fullname"];
    }
    mysql_free_result($result);
    ?>
      

  2.   

    我是指  mysql_fetch_array($result,"这里要添什么");
      

  3.   

    可以不添~~~但是如果你的程序里存在多个数据库连接的话~~就需要填上连接id~~就是mysql_connect()的返回值~~