10-07-2016, 04:01 AM
<pre>
Code:
$errors = $successes = [];
$form_valid=TRUE;
$permOpsQ = $db->query("SELECT * FROM permissions");
$permOps = $permOpsQ->results();
// dnd($permOps);
<pre>
Code:
<?php
foreach ($permOps as $permOp){
echo "<option value='$permOp->id'>$permOp->name</option>";
}
?>