mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
1 parent
5850640094
commit
8ca3c1bdfc
21 files changed
+190
-7
No files matched your search
@@ -10,6 +10,7 @@ When selecting data it will return all matching rows and columns, otherwise it w
|
||||
```lua
|
||||
-- alias: exports.oxmysql:query
|
||||
-- alias: MySQL.Async.query
|
||||
-- alias: exports.ghmattimysql:execute
|
||||
|
||||
MySQL.query('SELECT * FROM users WHERE identifier = ?', {playerIdentifier}, function(result)
|
||||
if result then
|
||||
@@ -26,6 +27,7 @@ end)
|
||||
```lua
|
||||
-- alias: exports.oxmysql:query_async
|
||||
-- alias: MySQL.Sync.query
|
||||
-- alias: exports.ghmattimysql:executeSync
|
||||
|
||||
local result = MySQL.query.await('SELECT * FROM users WHERE identifier = ?', {playerIdentifier})
|
||||
if result then
|
||||
|
||||
Reference in new issue
Block a user