The problem is probably quite simple.
$q = "SELECT id FROM users
WHERE name LIKE '%$u%' OR active LIKE '%$u%'";
echo $q;
$u = mysql_query($q) or die("There is a server error : " . mysql_error());
$u = mysql_fetch_array($u);
print_r($u);
But it returns me
[id] => 6
When I execute the query in Mysql Workbench it returns
6
7
8
It's probably a fetching problem but I don't understand why. Thanks :)