Jump to content

Load last element data?


tommymaster

Recommended Posts

Sure thing.

 

-- So, first we are going to create a table with any info.
table = { } 
table[1] = "a"

-- Tables cannot be stored to mysql, so we are converting it to JSON

jsonTable = toJSON(table)

-- Now it will be in the format of [ { "1": "a"} ] (something similar, writing by my head)

-- This can be saved in mysql.

-- When you want to use it as a lua table, use fromJSON(json string)

 

  • Thanks 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...