• Resolved David Gard

    (@duck_boy)


    Hey all,

    I’m trying to add some data to a table whenever a users sends a form from my site. I’m struggling though with the form data as this is an array, which I understand needs to be serialized to be stored in the DB? I’ve tried the following method but that doesn’t seem to work –

    if(!is_serialized($form_data)) :
    	$data = serialize($form_data);
    endif;

    Here is the link to the full code in the Paste Bin.

    I’d be greatful for any help with this.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding array data to the database’ is closed to new replies.