Jump to content

axepex

New Members
  • Posts

    4
  • Joined

  • Last visited

axepex's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. That's fair enough. I as well find time to come here for assistance in between my own 2 jobs haha, so we're all very busy... and employed! (Which is great!) I put an ad out on Fiverr for a script request. Unsure of the success rate of such website, but I can't imagine this task being too complex. I appreciate your time though to chime in. I will certainly return here with my results, if founded... or If I need any more help.
  2. Thank you maxxd for your input, and you Muddy_Funster, for your continued assistance... I am very sure you both know exactly what I am trying to do. Sadly, I have no idea how to update the script in regards to defining said functions and calling / printing this data. Maxxd, the site you posted is indeed a wordpress help page for understanding how to retrieve user info. If someone could create this script I am looking for, I would gladly pay for the service. This is a very important part in my next development stage. Can either of you jump in for the assist?
  3. Thank you for your interest in my thread. Yes, I do need some serious help in understanding what I did wrong. Do know though, I am not a PHP programmer by nature, so I am using what I can from past knowledge. The $user_login is my main issue. It's a wordpress function variable I believe. Essentially, I need the "$user_login" to input the users username into the search query. I do not even know where to start. This script was a copy/paste job that I modified a bit from an online repository. Any suggestions in making it work? Appreciate your feedback and suggestions. You may have to write it tho as I am a rock when it comes to PHP.
  4. So, as the title states; I have a Minecraft server, and a Wordpress website. Both server players and wordpress users have matching names. I would like a code that will use the player's wordpress username to retrieve same-name player data from other tables on the server. These other tables are created by Minecraft. I am having some trouble with adding the current user's login_name to the SQL query. They are identical, but I cannot figure out how to get the current user's info to be placed into the SQL query. This is the base type of script I am using: Any help for my issue? Thanks! //Sample Database Connection Script //Setup connection variables, such as database username //and password $hostname="localhost"; $username="REDACTED"; $password="REDACTED!!"; $dbname="mineassa_money"; $dbtable="moneysql"; //Connect to the database $connection = mysql_connect($hostname, $username, $password); mysql_select_db($dbname, $connection); //Setup our query $query = "SELECT money FROM `moneysql` WHERE `last_known_name`>=$user_login;"; //Run the Query //Run the Query $result = mysql_query($query); $data=mysql_fetch_assoc($result); echo $data['total']; //If the query returned results, loop through // each result if($result) { while($row = mysql_fetch_array($result)) { $name = $row["$yourfield"]; echo "Name: " . $name; } }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.