• 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] What is the best way to update existing serialized data

#2
Found the issue I had it like

PHP Code:
 "slideshow_module['" $slideshow_module['key'] . "'][banner_id]" 


PHP Code:
<?php 

$option 
= array();

foreach (
$banners as $key => $banner) { 
    
$option[$banner['banner_id']] = $banner['name'];
}

echo 
form_dropdown("slideshow_module['" $slideshow_module['key'] . "'][banner_id]"$option$slideshow_module['banner_id'], array('class' => 'form-control'));

?>

It should of been 

PHP Code:
"slideshow_module[" $slideshow_module['key'] . "][banner_id]" 
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply


Messages In This Thread
RE: What is the best way to update existing serialized data - by wolfgang1983 - 08-18-2017, 07:27 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.