Jump to content

silverorder

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by silverorder

  1. Hello.

    trying to make a mysql login system.

    the error:

    script.lua:37: bad argument #1 to 'mysql_query' 
    

    line 37 looks like this

    local query = mysql_query("SELECT * FROM `users` WHERE `username` = '" .. username .. "' AND `password` = '" .. pass .. "'") 
    

    The error only appears when i try to login

    All the tags i use is the same as in my db.. checked over 100 times

    I have no idea work this one out i have search up and down the forums and found nothing.

    I started scripting my own MTA yesterday, but have past exp. a little lua, PHP and mysql plus some more.

×
×
  • Create New...