I want to insert a record in a table on the admin_user.php page.
The option is located in the Misc Settings modal dialog box right beside the Delete user option.
(Between Lines 610 - 650)
The code is as follows:
<label>Clone this User?
<input type='checkbox' name='clone[<?php echo "$userId"; ?>]' id='clone[<? echo "$userId"; ?>]' value='<?php echo "$userId"; ?>' <?php if (!checkMenu(2,$user->data()->id) || $userId == 1){ ?>disabled<?php } ?>></label>
</div>
(Between lines 50 - 60) under the "Form posted" section, right beneath the deletion Post, the code is as follows:
if(!empty($_POST['clone'])){
$db->insert("members", ["memberid"=>$userId]);
}
When I click the update button, nothing is going to the database. I use the dnd($variable); and i see the value of the userId but I have no idea why that record is not inserted.
Need some help urgently!!!!!!!!!!!
The option is located in the Misc Settings modal dialog box right beside the Delete user option.
(Between Lines 610 - 650)
The code is as follows:
<label>Clone this User?
<input type='checkbox' name='clone[<?php echo "$userId"; ?>]' id='clone[<? echo "$userId"; ?>]' value='<?php echo "$userId"; ?>' <?php if (!checkMenu(2,$user->data()->id) || $userId == 1){ ?>disabled<?php } ?>></label>
</div>
(Between lines 50 - 60) under the "Form posted" section, right beneath the deletion Post, the code is as follows:
if(!empty($_POST['clone'])){
$db->insert("members", ["memberid"=>$userId]);
}
When I click the update button, nothing is going to the database. I use the dnd($variable); and i see the value of the userId but I have no idea why that record is not inserted.
Need some help urgently!!!!!!!!!!!