Hi, I need a simple ranking with only this:
Name - Points
In a table MySQL with the columns.
I have this code (i’m new in corona, sorry xD)
local json = require ( "json" ) local myNewData local decodedData local function networkListener( event ) if ( event.isError ) then print( "Network error!" ) else myNewData = event.response print ( "From server: " .. myNewData ) decodedData = ( json.decode( myNewData ) ) timer.performWithDelay(10, function() end, 1) end end local function uploadScore() puntos = "80000" nick = "nickTEST" network.request( "http://xxxxxxx.es/json.php?nick=" .. nick .. "&total=" .. puntos, "POST", networkListener ) end uploadScore()
Ok, this works for upload because I only call to URL and with GET update the table…
But… Hackers can fuck my scores in less than 1 sec xD
How can I do it, with more security, only need this, upload score, and maybe some day download scores.