Code:<?php //Add the SQL connection with your username and password and host $server = "ChangeToYourSQLServerHost"; //127.0.0.1 or (local) or whatever if it's remote $connectionInfo = array("Database"=>"MuOnline", "UID"=>"ChangeToYourSQLUsername", "PWD"=>"ChangeToYourSQLPassword"); sqlsrv_configure("WarningsReturnAsErrors", 0); $conn = sqlsrv_connect($server, $connectionInfo); if(!$conn) { echo "Connection failed!"; die(print_r(sqlsrv_errors(), true)); } $sqlQuery = "SELECT TOP 10 memb___id FROM MEMB_STAT ORDER BY DisconnectTM DESC;"; $result = sqlsrv_query($conn, $sqlQuery); if($result === false) { die( print_r( sqlsrv_errors(), true) ); } while( $row = sqlsrv_fetch_array($result, SQLSRV_FETCH_ASSOC) ) { echo $row["memb___id"]."<br>"; } ?>
This is a full script. Change the SQL credentials and build your query according to your needs and database schema because I don't know what database you are using.
P.S:
That's not spam, dude, lol... wth? No help given? :?: I think you have other threads where RageZone community tried to help you.
You are not asking for help, you are asking for "Just Do That For Me Because I'm Too Lazy To Put My Brain At Work".
Again, if you are not willing to learn, RageZone won't give you anything.
You are not the first one who's doing this and not the last one.tt1:
Also, don't take it this personally and put your brain at work and stop being lazy if you really wanna achieve something with your Mu servers.
Running any kind of server requires responsability and a certain mindset, not only just downloading some 1000 years old server files/web sites and making them run and also begging for help when a simple thing came across your path.
$sqlQuery = "SELECT COUNT(*) memb___id FROM MEMB_STAT WHERE CONVERT(date, DisconnectTM) = CONVERT(date, DATEADD(day, DATEDIFF(day,0,GETDATE()),0))";
of course thanksno help will be given thats the community idea only "idiots-at-work" at in youtube ^_^ anyway thanks for the help with nothing again me stop thinking this community will help someone big thanks me iwll stop post theards GL HF to all Enjoy ! when you dont help - you just SPAM
if someone want to help with the script are wellcome to do it
if someone dont want to help please do not spam with EVERYTHING ELSE WHAT IS HAVE NOTHING TO DO WITH THE SCRIPT WHO I WANT its a SPAM! i want help with the script this is not a spam theart ..
dont understand me wrong i know you make the best what you can and im very thanks for that but i need a help with the script, because me big noob and for me the easy is to share someone with me the whole script and me just to edit itlike i see someone make with a lot of their scripts so thanks to all again!
BUT!:
if someone can share a script who display last 10 players i will be thanksfull
and als if someone can share a script who display how many players online have TODAY, 10x Again
From an outsider perspective looking in...
I have seen various threads where you ask for help and then go in meltdown mode when your not given your way. You currently run a server and take donations. If you refuse to learn then people will expect you to pay for work. It's how the world works even off the computer.
@cMu was kind enough to help you numerous times and you quickly resort to some arrogant response because you couldn't put 2 and 2 together.
Perhaps stepping back you will see that maybe the help is not the problem but possibly your attitude.
every one in this forum is a free to help for free if he wants
me canT put 2 + 2 together and for that i want a help for that is maked the Help Selection of the Forum!dont hate
We all are here to learn and what is the bad if i ask for a help with a thing on who i dont understand a lot? and if i need more help that he are provided what is the problem to ask for it !?!
More you help to anothers = More the GOD Helps to you
no help will be given thats the community ideaonly "idiots-at-work" at in youtube ^_^ anyway thanks for the help with nothing again
There's no problem asking for help, you can ask thousands of times, but it's the attitude you have with us when you don't get help.
I mean, you are asking for help, but when you don't get help as you want, you are like pretty much disrespectful towards us. That's mainly the problem.
Look at what you've said.
And yes, that's disrespectful for RageZone and anyone who's trying to help you.
I'm a member from 2006! RageZone helped me a lot in my learning process. RageZone was not build on your attitude, but of respect and willing to learn something. Not just asking for help anytime you can't wipe your butt.
every one in this forum is a free to help for free if he wants
me canT put 2 + 2 together and for that i want a help for that is maked the Help Selection of the Forum!dont hate
We all are here to learn and what is the bad if i ask for a help with a thing on who i dont understand a lot? and if i need more help that he are provided what is the problem to ask for it !?!
More you help to anothers = More the GOD Helps to you
of course thanksno help will be given thats the community idea only "idiots-at-work" at in youtube ^_^ anyway thanks for the help with nothing again me stop thinking this community will help someone big thanks me iwll stop post theards GL HF to all Enjoy ! when you dont help - you just SPAM