• Mysqloo examples?
    3 replies, posted
Are there any public scripts or addons I could see to understand it? (I haven't seen it used before, most scripts don't need it and can use sqlLite. By example is one of the founding teachers ^_^)
[URL="http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexb23a.html"]SQL Tutorial: Part 1[/URL] - SQL Basics, and Setup. By quincy18 [URL="http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index01ee.html"]SQL Tutorial: Part 2[/URL] - Data Creation with SQL. By quincy18 [URL="http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexf158.html"]SQL Tutorial: Part 3[/URL] - Final Part, Saving and Retrieving with SQL. By quincy18 [URL="http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexb25c.html"]Implementing MySql[/URL] - How to use MySQL to save/load data by Bambo or Scroll down to [URL="http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index7a06.html"]databases [/URL]and use those links. I have no idea if SQLoo and SQLite or similar but those are the tutorials I know of.
[url]http://www.facepunch.com/showthread.php?t=1220537[/url] [lua]require( "mysqloo" ) local db = mysqloo.connect( "123.456.789.0", "drake", "abc123", "database_name", 3306 ) function db:onConnected() print( "Database has connected!" ) local q = self:query( "SELECT 5+5;" ) function q:onSuccess( data ) print( "Query successful!" ) PrintTable( data ) end function q:onError( err, sql ) print( "Query errored!" ) print( "Query:", sql ) print( "Error:", err ) end q:start() end function db:onConnectionFailed( err ) print( "Connection to database failed!" ) print( "Error:", err ) end db:connect()[/lua]
I actually haven't seen the 4th one brand, but sorry - no good, sqlLite has been cut and dry and unfortunately i have seen and tried to use it based off of those sacred 36 lines, no luck though
Sorry, you need to Log In to post a reply to this thread.