PHP

  mysql_connect("localhost", "root", "");
  mysql_select_db("db");
  $result = mysql_query("SELECT * FROM users where clue>0");
  while ($row=mysql_fetch_array($result)) {
    print $row["name"];
  }