I'm a complete PHP noob (and any other language for that matter), what i wanna know is why will this only return 1? No matter how many players the user has.
Also on SOME pages I wanna display them in a <select>
menu how can I do that?
function get_players($aid) {
$query = query("SELECT name FROM player WHERE account_id = $aid");
while ($row = fetch_assoc($query)) {
return $row['name'];
}
}
echo get_characters(1337);