homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

[Database store in array] Help make the order change, from the front to be the end

 4:37 pm on May 22, 2012 (gmt 0)

Hi guys,

1. i have a database field stored in array, the default is like this


2. now i want to add a value in that field, by run this link : domain.com/filename.php?cmd=addmod&modid=2 (please see the complete filename.php file content here : [pastebin.com ] , the part that i think responsible for this i think about line 674-709, that i highlighted there)

the field become like this, there is new code in the front that highlighted below


3. the only problem, i need it to put it in the back and the position are reserved, so like this that highlighted below

please help to make the array position stored like that, maybe by editing the php file

GBU for that helping



 11:03 pm on Jun 1, 2012 (gmt 0)

Can you update the data *before* you serialize it? That would be easiest. Otherwise you are going to have to work some magical regular expression find/replace.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved