if (ereg("-6-",$user'[U_Groups'])) {<br />echo "(groupname)";<br />}<br />should be ?<br />if (ereg("-6-",$user['U_Groups'])) {<br />echo "(groupname)";<br />}<br />but that might not work either you could try either:<br />if (ereg("-6-",$user[U_Groups])) {<br />echo "(groupname)";<br />}<br />or just doing<br />$groups = $user[U_Groups];<br />if (ereg("-6-",$groups)) {<br />echo "(groupname)";<br />}<br /><br /><a target=&quot;_blank&quot; href=http://www.extremeforums.org/msg/announce/221.html>http://www.extremeforums.org/msg/announce/221.html</a><P ID="edit"><FONT class="small"><EM>Edited by poil on 07/24/01 08:52 AM.</EM></FONT></P>