How do I display a list of members for each position, with some members being in more than one position. The categories where members meet, are in the same column separated by pipe ( |
).
Mycodeonlydisplaysthefirstid
(8)forexample,incaseifIclickanotherpost,suchasid
40,itdoesnotappearonthesite.Hereismycode:
<?php$id=isset($_GET['id'])?$_GET['id']:'';$newid=($id."|");
$sql = mysql_query("SELECT * FROM acp_usuarios u, acp_cargos t WHERE t.id=u.cargos AND u.id=t.user_id AND u.status='Ativo' AND u.ativado='s' AND u.cargos LIKE '$newid' OR u.cargos = '$newid' ORDER BY u.id");
while($ver = mysql_fetch_array($sql)){
?>