Panel

Linden Labs

Second Life ® y Linden Lab ® are registered trademarks from Linden Research, Inc. KodigoStyle is not affiliated or sponsored by Linden Reseach.

Storage system calls


Use the storage function to send and retrieve data from our servers.

api_storage(string OPTION, string TABLE_NAME, string 1ST_COLUMN_VALUE, 
                string 2ND_COLUMN_VALUE, 3RD_COLUMN_VALUE);

 OPTION CAN BE: [ADD|REMOVE|GET|LAST|UPDATE|COUNT]
 ADDAdd a new record to the storage system.
 REMOVEDelete the specified records from the storage system.
 GETGet the specified records from the storage system.
 LASTGet the last record submited to the storage system.
 UPDATEUpdate a row in the specified record.
 COUNTGet the number of records with the specified data.
        

Examples.

    Adding data to the storage system:

api_storage("ADD", "sales", "JJValero_Writer", "Parachute", "100");

Add a new record to the 'sales' table whith the values 'JJValero_Writer', 'Parachute", '100'

    Removing data to the storage system:

api_storage("REMOVE", "sales", "JJValero_Writer", "", "");

Remove all purchases made by 'JJValero_Writer'

    Adding data to the storage system:

api_storage("GET", "sales", "JJValero_Writer", "", "");

Get the last sales with the buyer 'JJValero_Writer'

    Retrieving the last data:

api_storage("LAST", "sales", "JJValero_Writer", "", "");

Get the last purchase from 'JJValero_Writer'

    Updating records:

api_storage("UPDATE", "sales", "JJValero_Writer", "->Bicicle", "");

Update all purchases from 'JJValero_Writer' to 'Bicicle' and don`t changes the third value.   

    Counting records:

api_storage("COUNT", "sales", "JJValero_Writer", "", "");

Get the number of purchases from 'JJValero_Writer'.

  Sign in   Recent Site Activity   Terms   Report Abuse   Print page  |  Powered by Google Sites