Raised This Month: $ Target: $400
 0% 

nvault.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 01-19-2020 , 13:25   Re: nvault.
Reply With Quote #3

Quote:
Originally Posted by Bugsy View Post
A key is unique in a vault, so you cannot save multiple items under the same key..the last nvault_set() will overwrite all the previous ones. This is the whole idea behind nvault array, allowing you to save multiple pieces of data under a single key.

Looking at your code it seems as if your mindset is that the variable name has a bearing on the type of data you are saving and retrieving, and this is not the case.

The only thing the nvault module sees is:

nvault_get( vault id , string variable , string variable , length )
nvault_set( vault id , string variable , string variable )
Okay so my second thought wasn't good either, thanks for explaining. Could u tell me what's wrong in my first code which doesn't save or load my values properly?
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode