Jump to content

PHP to show vendor prices / stock on website?


MadHatter05

Recommended Posts

I've only accomplished something like this in C# but the process should be similar for SQL/PHP

 

You could create a stored procedure in SMS and time it for regular intervals to query the player data or trade prices or whatever you want and save that off to an XML file hosted from your server.

 

Then

 

On your website, when a user loads a page a script runs that reads the XML file you generated and loops through the data building out a table of information.

Link to comment
Share on other sites

I've been working on something, but it's all in a Node.js (server side javascript) framework called express - pretty easy to setup though.

 

I'll most likely have the vendor/detailed player stats done over the weekend, if time permits - basic stats page is already available here http://www.shizweak.com

 

I'll put it all up in a repo on GH soon.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...