after logeed in using php session , how to select all the other users?
<pre><code>mysql_connect("localhost","root","");
mysql_select_db("db");
session_start();
ob_start();
if(!isset($_SESSION["username"])) {
header("location:login.php");
}
$res = mysql_query("select * from usertable");
$vals = mysql_fetch_row($res);
foreach($vals as $k) {
  echo "$k";
}
</code></pre>

<p>here after logged in , i want to select all the users, so that in my search engine it will come. But i am not able to do that.. How to see all other users here so that i can go to their profile and give add as a friend.I dont want to use any facebook sdk api. By just simple database management.</p>
