+ Reply to Thread
Results 1 to 7 of 7

Thread: MYSQL Highscores Databse

  1. #1
    all mighty 1 is offline x10Hosting Member all mighty 1 is an unknown quantity at this point
    Join Date
    May 2010
    Posts
    4

    MYSQL Highscores Databse

    Ok I have a dynamic signature databse, and i was wondering if there is any good tutorial around so that i can make a highscore table?

    thanks

  2. #2
    learning_brain is offline x10 Sophmore learning_brain is an unknown quantity at this point
    Join Date
    Apr 2010
    Location
    UK, Midlands
    Posts
    170

    Re: MYSQL Highscores Databse

    Weirdly, most google results are for flash or other games.... no good tuts I can readily find.

    However, a highscore table would be simple enough to do depending on what you want.

    For instance, you could add another column in your mysql db with score.

    Then simple do a recordset using "ORDER BY score ASC" in your sql query.

    To output, create a repeating region (do{......} while()) to output the scores in a table.

    If you can be more specific, we can help you through it step by step.

    How skilled are you in php?

  3. #3
    smithee's Avatar
    smithee is offline x10Hosting Member smithee is an unknown quantity at this point
    Join Date
    Aug 2009
    Location
    NIMBY
    Posts
    45

    Re: MYSQL Highscores Databse

    What would your high scores be based on? I assume it's for a game, but is it in Flash, Java, JavaScript, etc...?
    .

    Be nice to nerds. Chances are you’ll end up working for one. - Bill Gates

  4. #4
    all mighty 1 is offline x10Hosting Member all mighty 1 is an unknown quantity at this point
    Join Date
    May 2010
    Posts
    4

    Re: MYSQL Highscores Databse

    yes it is for a game runescape*java*, im using it for a bot for when the bots finishs it calculates the timeran etc

    the code that updates to php is java

    All i want it to output is the

    user, timeran, exp, naturesmade:

    Code:
    public void updateStats(boolean update) {
    		if (System.currentTimeMillis() - lastUpdateMillis > 300000 || update) {
    			if (lastExp == 0)
    				lastExp = skills
    				.getCurrentSkillExp(Constants.STAT_RUNECRAFTING);
    			if (lastUpdateMillis == 0)
    				lastUpdateMillis = startTime;
    			try {
    				new URL(
    						//http://scaper.elementfx.com/sig/submit.php?user=
    						"http://scaper.freehostia.com/sig/submit.php?user="
    						+ user
    						+ "&time="
    						+ Math
    						.round((System.currentTimeMillis() - lastUpdateMillis) / 1000)
    						+ "&nats="
    						+ naturerunecount
    						+ "&xp="
    						+ (skills
    								.getCurrentSkillExp(Constants.STAT_RUNECRAFTING) - lastExp)).openStream();
    			} catch (final MalformedURLException e1) {
    			} catch (final IOException e1) {
    			}
    
    			lastUpdateMillis = System.currentTimeMillis();
    			lastExp = skills.getCurrentSkillExp(Constants.STAT_RUNECRAFTING);
    		}
    	}
    Last edited by all mighty 1; 06-04-2010 at 08:36 AM.

  5. #5
    callumacrae's Avatar
    callumacrae is offline not alex mac callumacrae is just really nice
    Join Date
    Dec 2007
    Location
    Wellesbourne, England
    Posts
    5,162

    Re: MYSQL Highscores Databse

    You can't host a runescape bot on your account

    ~Callum
    I can customise your phpBB board. Send me a PM.
    lynxphp - info, tutorials and scripts
    "A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."

  6. #6
    all mighty 1 is offline x10Hosting Member all mighty 1 is an unknown quantity at this point
    Join Date
    May 2010
    Posts
    4

    Re: MYSQL Highscores Databse

    Quote Originally Posted by Alex Mac View Post
    You can't host a runescape bot on your account

    ~Callum
    uhhh i am not hosting a runescape bot :/

    im hosting a dynamic signature and its stats from a script for a bot that is not hosted anywere nere these forums all i do is send data from the script to my mysql databse

  7. #7
    all mighty 1 is offline x10Hosting Member all mighty 1 is an unknown quantity at this point
    Join Date
    May 2010
    Posts
    4

    Re: MYSQL Highscores Databse

    Can anyone please help me?

    My question now is

    How can i make a php file read my mysql databse for the users.?

    Then im going to output the data with html

+ Reply to Thread

Similar Threads

  1. could not able to connect mysql databse
    By shubhas2007 in forum Free Hosting
    Replies: 4
    Last Post: 03-31-2010, 02:35 PM
  2. Mysql databse ==> deleted?
    By simonfausel in forum Free Hosting
    Replies: 2
    Last Post: 02-17-2010, 01:48 PM
  3. Mysql databse host
    By sfa9killer in forum Free Hosting
    Replies: 7
    Last Post: 02-14-2010, 08:15 AM
  4. Cheater Highscores.....
    By Angel_Pie in forum Forum Games
    Replies: 1
    Last Post: 10-01-2009, 02:42 PM
  5. Cannot connect vb2005 app to MySQL databse
    By dvillarjr in forum Free Hosting
    Replies: 5
    Last Post: 02-29-2008, 11:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers