Jump to content

Calamity

Inactive Member
  • Posts

    5
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Calamity

  1. Hi, I'm working on something and for it to work in the manner that i require it. I need it to return a value from the database. It always returns a value of 0.

     

    here's the function

    function total_points(x)
    local z = os.execute("mysql -u root account --execute='SELECT `points` FROM account.account WHERE id = ".. pc.get_account_id() ..";'")
    return z
    end

     

    I've tested the query in navicat and it works fine, i can insert ints into the database but not strings??? 

     

     

    i've tried using a mysql_query function but it wouldnt return any value. if someone has a working mysql_query function simlair to this, i'd appreciate if you could post it here as i could have used the wrong syntax for that.

     

    any help is appreciated. 

     

    I can't find any information on this so the first person to solve it gets 15 euros via Paypal, but i must be able to select any information and insert any rather than just inserting int's :).

     

    information - i'm on 34k

    server files -  im using are macross's

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.