1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Virtual Stock Exchange/Market

Discussion in 'PHP' started by zeoed, Aug 18, 2010.

  1. #1
    I came to this website as I thought it was the best place for me to start. What I would like to do is create a website/web page like this one http://robloxhq.com/index.php?/stocks/ I have the database set up and the page ready (http://thecrown.comuf.com/Stock_Market/) My database structure for the stocks look like this:

    [​IMG]
    SEMrush
    Is there any free PHP script that can interact with MySQL database and do what the RobloxHQ website can do?

    (Please be mature, I am only asking for little help on where I can find a script to do this. I have searched google and have found no good results.)

    Thanks in advance for your help. It is much appreciated.
     
    zeoed, Aug 18, 2010 IP
    SEMrush
  2. yohanip

    yohanip Well-Known Member

    Messages:
    350
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #2
    i think you need a custom php script made for that one,
    a free script maybe lies one but you need to adjust the table design with the free ones :)
     
    yohanip, Aug 18, 2010 IP
  3. ThomasTwen

    ThomasTwen Peon

    Messages:
    113
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Just for clarification: You want a virtual stock exchange with its own prices, and that is not related to the actual stock market? So you basically have a kind of stock market game. Is that correct?

    My advice would be to ditch the database you pictured above, and look for a script first. It will come with its own database structure included.
     
    ThomasTwen, Aug 18, 2010 IP
  4. zeoed

    zeoed Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    @Thomas, exactly.
    This is close to what I need, but it won't run on my site as it uses JSP.

    www[.]anders[.]com/projects/mockMarket/

    Remove the []
     
    Last edited: Aug 18, 2010
    zeoed, Aug 18, 2010 IP
  5. ThomasTwen

    ThomasTwen Peon

    Messages:
    113
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Why does JSP require the specific database structure you posted above? You basically already coded the site, and now you need a script to fill the database? So you need a script that fetches the current stock prices from somewhere, and saves it into the database? I don't think there is a free script that does that for you. I might be able to help you develop such a script... please PM me for further information on that.
     
    ThomasTwen, Aug 19, 2010 IP
  6. lowridertj

    lowridertj Well-Known Member

    Messages:
    2,882
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    145
    #6
    you can do what your looking for with what you already have started.

    and then use a bit of ajax to make the stocks simulate real time movement.
    and a cron job ran to increase and decrease the market prices.
     
    lowridertj, Aug 22, 2010 IP
  7. directorcom

    directorcom Peon

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Let me know exact specs..... have a stock pick script, that allows members to pick the rise and fall of stocks. Please PM
     
    directorcom, Aug 22, 2010 IP