fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Any idea what I could use for an db update?

    Questions & Answers
    1
    2
    502
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      coverman last edited by

      I have one http request sent to my db when a trade is opened. It works fine. It's sending the price, stop loss, take profit and things like that.
      When a trade is closed I would like to update my trade in the db with the close price.
      But how can I identify the correct one in the db? Any idea what I could use to identify the right trade?
      UPDATE db SET closeprice=$closeprice WHERE what=$what;

      1 Reply Last reply Reply Quote 0
      • C
        coverman last edited by

        Well, I found the answer. I used the ticket for this update. Works fine.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        Online Users

        L
        S
        A
        F

        13
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors