Jump to content

How do u put the stats on website?


Guest WeeD-XFK

Recommended Posts

hi

i wanted to know how can i put stats of my scripts on website for my MTA:SA Race DD server? how can i put it all in table and present it?

i know its possible because people in teamskc.com did it lol

thank you

Link to comment
hi

i wanted to know how can i put stats of my scripts on website for my MTA:SA Race DD server? how can i put it all in table and present it?

i know its possible because people in teamskc.com did it lol

thank you

MySQL might work for it, but dunno how... =/

Also you have a few resources, perhaps you can make something out of it. However, your best bet would be MySQL I think...

Link to comment

If stats are saved in a MySQL then you can connect to MySQL using PHP easily. If you store stats in XML or SQL and if you want to display the stats on an external website, you'd have to create (eg. a PHP) script which connects to the server, gather the data from XML or SQL and return this data to the PHP script. When you get the data back, you can display them on the website.

Link to comment
If stats are saved in a MySQL then you can connect to MySQL using PHP easily. If you store stats in XML or SQL and if you want to display the stats on an external website, you'd have to create (eg. a PHP) script which connects to the server, gather the data from XML or SQL and return this data to the PHP script. When you get the data back, you can display them on the website.

Only problem I noticed so far was that every attempt of mine with connecting to an external MySQL database crashed the server application... =/

Because normally, I let MySQL connect to "localhost", but connecting to "xxx.xxx.xxx.xxx" failed. (Well, it was an IP or site... Can't remember... =/)

So is there something special everyone needs to keep in mind when connecting externally?

Link to comment
If stats are saved in a MySQL then you can connect to MySQL using PHP easily. If you store stats in XML or SQL and if you want to display the stats on an external website, you'd have to create (eg. a PHP) script which connects to the server, gather the data from XML or SQL and return this data to the PHP script. When you get the data back, you can display them on the website.

hmm im noob at this whole MySQL and PHP stuff but ill research abit more on this and ill let you know how it went on :D8) thank you 50p and also gamesnert

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...