Welcome to Hacking the PSP Sign in | Join | Faq

PSP Software Development

Started by Auri at 11-30-2007 10:49 PM. Topic has 0 replies.

Print Search
Sort Posts:    
   11-30-2007, 10:49 PM
Auri is not online. Last active: 6/18/2008 2:51:17 AM Auri



Top 10 Posts
Joined on 12-07-2005
Indianapolis, Indiana
Posts 3,679
LuaSQL for PSP v0.1

Attachment: LuaSQLv0.1.rar
Reply Quote
News/release from shaolan is something for those who know how SQL and databases work so for the majority of us this wont be good for us, but heres the translated newspost:
All of abors veiled all the necessary file:
LuaSQLv0.1.rar

Then you must have a server supporting PHP, with many on SQL database

Server side:

If you have an archive file PHP, metté its contents at the root of your server (or is generally your "index.php")

You: votre_serveur / LUA / SQLRequest.php

Cote PSP:

Code:

-- / / Calls to the bookstore
Dofile ( "SQLRequest.lua")
-- / / Initializing connection
SQL.init (server, database, login, password)
-- / / Connect to the database
SQL.connect ()

Code:

-- / / SELECT Request
Variable = SQL.select (table, field, parameter)

-- / / UPDATE Request
SQL.update (table, field value parameter)

Code:

-- / / Closing connection SQL
SQL.close ()

Note:
- When you make the UPDATE query, the query if it is well spent, the variable SQL.error is false if there was a mistake it true worth

- The library uses by default the first WiFi connection, and operates under the LUA PLAYER 0.16

- DAns the parameter you can save as much as you want, but the spaces doivents be replaced by% 20 and evité quotes singles or doubles for the moment

It was only the first version, I intend to optimize shortly and metttre available throughout the SQL query, this is a "preview" rendering final ^ ^


CODE GOOD!

Description Source: PSP News


---
Author, Hacking the PSP
www.hackingpsp.com

   Report 
Hacking the PSP » Hombrew Softwar... » PSP Software De... » LuaSQL for PSP v0.1

Powered by Community Server, by Telligent Systems