SA-MP Forums Archive
Help - how to get data on the player in PHP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help - how to get data on the player in PHP (/showthread.php?tid=84655)



Help - how to get data on the player in PHP - X12X - 02.07.2009

Hi, I need help, how to obtain data on the players
on the server. I am a beginner in PHP and want to obtain as much data on my website, as an example to me is sufficient to read the weather, or ping, thanks
Sorry for my bad English - I am from Slovakia


Re: Help - how to get data on the player in PHP - Anarkien - 02.07.2009

Quote:
Originally Posted by X12X
Hi, I need help, how to obtain data on the players
on the server. I am a beginner in PHP and want to obtain as much data on my website, as an example to me is sufficient to read the weather, or ping, thanks
Sorry for my bad English - I am from Slovakia
Are you using an MySQL database to store the user information (levels, money etc.) or do you use .ini files or other flatfile systems?
If you're using MySQL it's easy: http://www.w3schools.com/php/php_mysql_select.asp + http://www.w3schools.com/php/default.asp for more PHP information.