Some things to try:
PHP Code:
$DeclineList = $this->AdminServices_model->DeclineList();
$DeclineList = array_push( $DeclineList , $UserID->id );
To:
PHP Code:
$DeclineList = $this->AdminServices_model->DeclineList();
array_push( $DeclineList , $UserID->id );
Debug like so, make sure the $UserID->id is being added:
PHP Code:
$DeclineList = $this->AdminServices_model->DeclineList();
var_dump( $DeclineList );
$DeclineList = array_push( $DeclineList , $UserID->id );
var_dump( $DeclineList );
It might be helpful to see your database structure, as this call is confusing:
PHP Code:
$AddDeclined = array( 'odrzucili' => $DeclineList );
Are you saying you have a database table that only has one field in it: odrzucili
Also to store an array in the database you should serialize it.
Also in DeclineList you are potentially getting a array of arrays ( multidimensional array). I think you are confusing getting multiple results and trying to update a single result.