I want to Check if User id is already exist in database print false
$token = "token";
$data = json_decode(get_html("https://graph.facebook.com/$user->id&access_token=$token"))->data;
$id = echo "".$user->id;
$result = mysql_query("SELECT * FROM token_all WHERE id = $id");
while($row = mysql_fetch_array($result, MYSQL_ASSOC)){
$checkid = row[id];
}
if ($id == $checkid){
echo "true";
}else{
echo "false";
}