[Plugin] Homes Plugin!?
#10
If so, use the ExecuteStatement() function instead, it's more high-level and provides the right interface that you need, the code I posted earlier will work with ExecuteStatement, if you add a middle parameter to it:
local theResult = {}
DB:ExecuteStatement(
  "SELECT * FROM " .. PluginName .. " WHERE Player = ?",  -- Note the use of placeholders for increased safety
  { playerName },  -- Placeholders will be replaced with values from this table
  function getResult(a_RowValues)  -- This callback will be called for each retrieved DB row
    -- add the returned row to our result table:
    table.insert(theResult, a_RowValues)
  end
)
return theResult
Reply
Thanks given by:


Messages In This Thread
[Plugin] Homes Plugin!? - by nouseforname - 11-25-2014, 05:20 AM
RE: [Plugin] Homes Plugin!? - by NiLSPACE - 11-25-2014, 05:22 AM
RE: [Plugin] Homes Plugin!? - by sphinxc0re - 11-25-2014, 05:46 AM
RE: [Plugin] Homes Plugin!? - by xoft - 11-25-2014, 06:23 AM
RE: [Plugin] Homes Plugin!? - by nouseforname - 11-25-2014, 06:28 AM
RE: [Plugin] Homes Plugin!? - by xoft - 11-25-2014, 07:18 AM
RE: [Plugin] Homes Plugin!? - by nouseforname - 11-26-2014, 04:27 AM
RE: [Plugin] Homes Plugin!? - by xoft - 11-26-2014, 06:05 AM
RE: [Plugin] Homes Plugin!? - by xoft - 11-26-2014, 06:09 AM
RE: [Plugin] Homes Plugin!? - by nouseforname - 11-26-2014, 06:15 AM
RE: [Plugin] Homes Plugin!? - by nouseforname - 11-27-2014, 01:25 AM
RE: [Plugin] Homes Plugin!? - by xoft - 11-26-2014, 06:12 AM
RE: [Plugin] Homes Plugin!? - by xoft - 11-27-2014, 02:56 AM
RE: [Plugin] Homes Plugin!? - by nouseforname - 11-27-2014, 03:04 AM
[Plugin] Homes RC1 - by nouseforname - 11-27-2014, 05:44 AM
RE: [Plugin] Homes Plugin!? - by xoft - 11-27-2014, 06:27 AM
RE: [Plugin] Homes Plugin!? - by nouseforname - 11-27-2014, 01:41 PM
RE: [Plugin] Homes Plugin!? - by xoft - 11-27-2014, 06:44 AM
RE: [Plugin] Homes Plugin!? - by bearbin - 11-27-2014, 05:44 PM
RE: [Plugin] Homes Plugin!? - by nouseforname - 11-27-2014, 05:47 PM
RE: [Plugin] Homes Plugin!? - by xoft - 11-27-2014, 07:43 PM
RE: [Plugin] Homes Plugin!? - by nouseforname - 11-28-2014, 01:52 AM
RE: [Plugin] Homes Plugin!? - by xoft - 11-28-2014, 02:58 AM
RE: [Plugin] Homes Plugin!? - by nouseforname - 11-28-2014, 03:33 AM



Users browsing this thread: 7 Guest(s)