mirror of
https://github.com/luapower/mysql.git
synced 2024-12-28 11:50:28 +01:00
unimportant
This commit is contained in:
parent
8a88e36fdb
commit
63beb9ab35
3
mysql.md
3
mysql.md
@ -141,7 +141,8 @@ function print_help(search)
|
||||
local mysql = require'mysql'
|
||||
|
||||
local conn = mysql.connect('localhost', 'root', nil, 'mysql', 'utf8')
|
||||
conn:query("select name, description, example from help_topic where name like '" .. conn:escape(search) .. "'")
|
||||
conn:query("select name, description, example from help_topic where name like '" ..
|
||||
conn:escape(search) .. "'")
|
||||
local result = conn:store_result()
|
||||
|
||||
print('Found:')
|
||||
|
Loading…
Reference in New Issue
Block a user