not working
this works better
Code:
$sql = "SELECT count(id) as count FROM ".$db_prefix."_peers WHERE connectable = 'yes' and uid = '".$user->id."';";
$conec = $db->sql_query($sql) OR btsqlerror($sql);
$conectable = $db->sql_fetchrow($conec);
if($conectable['count'] > 0)echo pic('/imperial/transmit_blue.png',NULL,'Conectable');
else
echo pic('/imperial/transmit.png',NULL,'Not Conectable');
changed get user id query