Hi guys i have a code for update my database
$users = Sdba::table('tabusuarios');
$users->where('User_Id =', $User_Id);
$data = array('User_Name'=> $User_Name, 'User_Email'=> $User_Email, 'User_Status'=> $User_Status, 'User_Perm'=> $User_Perm);
$users->update($data);
My problem is i want to also update 1 more column if this exists something like this
if ($_POST["User_Password"]) $data = array('User_Password'=> saltSenha($_POST["User_Password"]));
So i want to make a all this togheter
Thanks for any help.
if (!empty($_POST...)) { $data['User_Password'] = ...; }?