EDIT: The problem is with the a link... when i remove this it works. Can someone explain why this happens please
- PHP: Select all
function selectgroup($id) {
global $dbc;
echo '<p>Select Group</p>';
$query = "SELECT group_id, group_name, group_description FROM uncgroupss";
$result = mysql_query ($query);
while ($row = mysql_fetch_assoc ($result)) {
$groupid = $row['group_id'];
echo '<table><tr><td>'. $row['group_name'] . ' - ' . $row['group_description'] . ' - <a href="admin_members.php?action=insert&id='.$id.'&group='.$groupid.'>Add User</a></td></tr></table>';
}
}
The query works fine and when inserted directly into mysql it brings back 2 results. When i run it in my webpage it only brings back one result.
Can anyone see anything wrong with this?