Welcome Guest, Not a member yet? Register   Sign In
Adding text to record field
#2

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.
Reply


Messages In This Thread
Adding text to record field - by vertisan - 08-02-2015, 06:47 AM
RE: Adding text to record field - by msteudel - 08-03-2015, 10:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB