Quote:
Originally Posted by KirbyDE
To get your stuff use $myarray = unserialize($datastore['mykey']);
To write your stuff call build_datastore('mykey', serialize($myarray))
|
How would you store just a string instead of a whole array?
Then how would you call it back?
I tried
PHP Code:
$testvar="ted";
build_datastore('mytest', $testvar);
Which successfully put "ted" into "mytest" in the datastore table. However to get it back I tried
PHP Code:
$anothertestvar=$datastore[mytest];
as well as
PHP Code:
$anothertestvar=$datastore[testvar];
and it didn't work.