Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: all db records get updated instead of only 1
Post: RE: all db records get updated instead of only 1

iRedds Wrote: (01-06-2021, 04:10 AM) -- [email protected] Wrote: (01-05-2021, 10:36 AM) -- iRedds Wrote: (01-05-2021, 10:28 AM) -- Use getGet() instead getPost() -- That did the trick. Thanks ! ...
3,264 Views
6 Replies
01-06-2021, 04:13 AM
[email protected]
    Thread: all db records get updated instead of only 1
Post: RE: all db records get updated instead of only 1

InsiteFX Wrote: (01-05-2021, 12:30 PM) -- Also your update is backwards. PHP Code: -- $model->update($id_user,$data); // should be. $model->update($data, $id_user); -- -- I found this in ...
3,264 Views
6 Replies
01-06-2021, 03:19 AM
[email protected]
    Thread: all db records get updated instead of only 1
Post: RE: all db records get updated instead of only 1

iRedds Wrote: (01-05-2021, 10:28 AM) -- Use getGet() instead getPost() -- That did the trick. Thanks ! I think I understand why it didn't work before: because my view page sends the parameter ...
3,264 Views
6 Replies
01-05-2021, 10:36 AM
[email protected]
    Thread: all db records get updated instead of only 1
Post: all db records get updated instead of only 1

Hu guys, I am working on a school project. I have a validateUser function in my Users.php controller: PHP Code: -- public function validateUser() { $data = []; UserModel::validateUser($...
3,264 Views
6 Replies
01-05-2021, 08:40 AM
[email protected]
    Thread: Cannot update database fields using model->save()
Post: RE: Cannot update database fields using model->sav...

The problem was a typo in my Model. I wrote primarykey instead of primaryKey...
1,548 Views
2 Replies
12-14-2020, 11:29 AM
[email protected]
    Thread: Cannot update database fields using model->save()
Post: Cannot update database fields using model->save()

Hi guys, So I'm working on a CodeIgniter school project and I got stuck while trying to update the user profile. I cannot for the life of me figure out why model->save() does nothing in the db and ...
1,548 Views
2 Replies
12-08-2020, 07:25 AM
[email protected]

Theme © iAndrew 2016 - Forum software by © MyBB