Hi,
My problem is that when I click a group, I want it to echo all the users in that certain group from the database.
My code so far is:
Groups
<?php include('db.php'); if (isset($_GET["groupID"])) { $sql="SELECT * FROM `group` WHERE groupName <> 'admin' AND groupName <> 'poweruser' AND groupID = " . $_GET["groupID"] ; } else { $sql="SELECT * FROM `group` WHERE groupName <> 'admin' AND groupName <> 'poweruser'" ; } $result=mysql_query($sql,$connection); while($rivi=mysql_fetch_array($result)){ echo "".$line['groupName'].''; } mysql_free_result($result); mysql_close($connection); ?>
Any help how to continue from here?