Hi im trying to show the group name on my site but im having trouble connecting both querys. The users class is in the user table while the group name is in the group table.
ive managed to show the class user number from the user table, i just need to add a second query now to pull from groups the group name
this works for the users class number
$res3 = SQL_Query_exec("SELECT class FROM `users` WHERE id=$posterrid ");
$arr3 = mysqli_fetch_row($res3);
$group = $arr3[0];
so it would be
$res3 = SQL_Query_exec("SELECT class FROM `users` WHERE id=$posterrid ");
$res4 = SQL_Query_exec("SELECT level FROM `groups` WHERE group_id=$res3 ");
$arr3 = mysqli_fetch_row($res4);
$group = $arr3;