Also, what is the point of unserialize(serialize(.)), that would imply $data = $data wouldn't it?
Nope, that's not looping out of control. I input 3 and it returns just that.
I don't know about that unserialize(serialize()). That's what WordPress has in their cache.php.
I have it in an include on line 33. You can view the page here
Thanks for working with me. Keep it comming
I'm making a registration form for a clients site and I've gotten an error:
and line 48 in cache.php (which is a wordpress file) is
47. global $wp_object_cache;
48. $data = unserialize(serialize($data));
49.
50. return $wp_object_cache->set($key, $data, $flag, $expire);
51. }
The line of code that is causing the error is 261, 262 and 263.
259. while($i <= get_option(session_id().'childrennumber')){
260. echo "<td></td>";
261. echo "<td>". get_option(session_id().'child'.$i.'name') ."</td>";
262. echo "<td>". get_option(session_id().'child'.$i.'age'). "</td>";
263. echo "<td>". get_option(session_id().'child'.$i). "</td>";
264. $i++;
265. } // end while
And this is where I'm creating them
81. while ($i <= get_option(session_id().'childrennumber')){
82. update_option(session_id().'child'.$i.'name', $_REQUEST['child'.$i.'name']);
83. update_option(session_id().'child'.$i.'age', $_REQUEST['child'.$i.'age']);
84. update_option(session_id().'child'.$i, $_REQUEST['child'.$i]);
85. $i++;
86. } // end while
Update_option() in Wordpress plugins creates or updates the item to the database and get_option() just gets it.
You can see the whole code here.
I don't see where it's overloading it. Any suggestions?