2016-05-11, 04:52 PM
So I'm sure there is a simple way to do this, but I cannot wrap my head around it.
So look at the code (before I explain):
This works fine if there is just 1 GroupID in
However a better way would be if I can save multiple group id's into the
Thanks!
So look at the code (before I explain):
// Grab Group ID (From user)
$p_GroupID = $db_Data["usergroup"];
// Select From DB
$db_HQuery = $db->simple_select("test_options", "*", "pgroup='$p_GroupID'");
$db_HData = $db->fetch_array($db_HQuery);
^^ That works fine.This works fine if there is just 1 GroupID in
pgroup
.However a better way would be if I can save multiple group id's into the
pgroup
column (example: '4,5,6') like that, but how would one grab it from DB and compare it?Thanks!