Julius95 Posted November 14, 2013 Share Posted November 14, 2013 Is there anyway to make so you can see users stats on a website? and registered users etc? Link to comment
Julius95 Posted November 14, 2013 Author Share Posted November 14, 2013 Yes but where can I find a system like that so I can just set it up? Link to comment
Cadu12 Posted November 14, 2013 Share Posted November 14, 2013 You have to make scripts. Or search in community. Link to comment
Julius95 Posted November 14, 2013 Author Share Posted November 14, 2013 You have to make scripts. Or search in community. I have searched but I doesn't find... that's why I ask... I can't script Link to comment
TrapLord Studios™ Posted November 15, 2013 Share Posted November 15, 2013 If you want any help with mysql and sites contact me via Skype avindean6 Link to comment
Tete omar Posted November 15, 2013 Share Posted November 15, 2013 Use: webstats resource Can be found in: server/mods/deathmatch/resources/[web]/webstats.zip Link to comment
Julius95 Posted November 15, 2013 Author Share Posted November 15, 2013 Use: webstats resourceCan be found in: server/mods/deathmatch/resources/[web]/webstats.zip I don't get it what files I'm supposed to upload to the website etc? Link to comment
xXMADEXx Posted November 15, 2013 Share Posted November 15, 2013 The easiest way would probably be to just use an MySQL database. Link to comment
Julius95 Posted November 15, 2013 Author Share Posted November 15, 2013 The easiest way would probably be to just use an MySQL database. I have one... and then what????? I need more info... what do I need to download? I really need more help Link to comment
xXMADEXx Posted November 16, 2013 Share Posted November 16, 2013 You need an MySQL data base host that'll allow remote connections. Link to comment
Julius95 Posted November 16, 2013 Author Share Posted November 16, 2013 You need an MySQL data base host that'll allow remote connections. I have one..... then what? what's the steps that needs to be done? any more info appreciated. the mysql part is fine... Link to comment
xXMADEXx Posted November 16, 2013 Share Posted November 16, 2013 You need an MySQL data base host that'll allow remote connections. I have one..... then what? what's the steps that needs to be done? any more info appreciated. the mysql part is fine... Well you need to make a query to insert or select data. You can try this: http://www.mysqltutorial.org/ Link to comment
Julius95 Posted November 16, 2013 Author Share Posted November 16, 2013 You need an MySQL data base host that'll allow remote connections. I have one..... then what? what's the steps that needs to be done? any more info appreciated. the mysql part is fine... Well you need to make a query to insert or select data. You can try this: http://www.mysqltutorial.org/ I still don't get it data for what? I have my mysql server up and running find and the database to... but thw WEBSITE??? Link to comment
Smart. Posted November 17, 2013 Share Posted November 17, 2013 This is a small chat .php code I made, you will have to make the lua code yourself but this should give you an idea on how it works. <?php $con=mysqli_connect("localhost","user","pass","db_name"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $result = mysqli_query($con,"SELECT * FROM chat"); while($row = mysqli_fetch_array($result)) { echo $row["message"]; echo "<br>"; } mysqli_close($con); ?> To order the chat, making the newest input the first you could create a date table and then use "ORDER BY date DESC" Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now