Je moet ingelogd zijn om te stemmen.
SELECT COUNT(friendid) FROM friends WHERE friendid=$userid;
SELECT 1 as hello FROM friends WHERE friendid=$userid; <? if( mysql_num_rows($query) != 0 ) { .. } ?>
SELECT 1 as hello FROM friends WHERE friendid=$userid; <?if( mysql_num_rows($query) != 0 ){..}?>