Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 961481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:21:03+00:00 2026-05-16T01:21:03+00:00

I’m a bit confused about displaying data from a MySQL database. I would like

  • 0

I’m a bit confused about displaying data from a MySQL database. I would like to make a single $.getScript(''); request to grab point values if possible, but my trouble is getting it to work with multiple members. I need to grab the point values for each user by their ID number. (this is for a forum software- ZetaBoards.. basically a point system. Points are displayed below the users post count.) Here’s my code so far.. can also post the PHP stuff if needed. +/- functions work flawlessly, although you don’t see those options because you’re not a moderator. :p I’m just stuck when it comes to displaying the data. D: Here’s the main base of the code.. it’s currently being tested on this board.

http://209.85.62.24/212/175/0/p348841/main.js

A similar system did something like this… although I don’t exactly get how it works. The second link is for 2 users- making only one request like I said. I’m guessing this is what I’d need to do? but how.. that’s the question. haha.

Only allowed one hyperlink, sooo.. D:

http://themeszetaboards.com/tokens/getpoints.php?uid=260836

http://themeszetaboards.com/tokens/getpoints.php?uid=260836|195145

I could probably do this with single requests to a php file, but I’d rather not fire 20+ requests on a single page. (one for each user) xD Any ideas? Thanks. (:

Oh: In my MySQL database, I have two fields: ‘uid’ and ‘points’. Sorry if this question is too difficult/specific.

Edit:

Alright, so- I figured it out for the most part. Instead of screwing around with the IDs, I just threw ’em all on the same page. Thanks for the help you three. ;D

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:21:04+00:00Added an answer on May 16, 2026 at 1:21 am

    Yes, for handling 1 or more queries, I would call the script like in your question:

    http://themeszetaboards.com/tokens/getpoints.php?uid=260836|195145
    

    Within PHP, I would have something like the following:

    # Get UIDs from GET Parameter, Only allow numeric values (and separator)
    $uids = explode( '|' , preg_replace( '/[^\d\|]/' , '' , $_GET['uid'] ) );
    /*
    Perform MySQL Query and return Array of uids and points
    $out = array( '260836'=>'5pts' , '195145'=>'100pts' );
    */
    header( 'Content-type: application/json' );
    die( json_encode( $out ) );
    

    This should then be able to be parsed with jQuery to extract the points associated with each uid.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.