Jump to content

Running multiple queries


Smudly

Recommended Posts

I'm working on a Stats page that will need to run multiple queries to access the information needed to dislpay on the page. Rather than running 30+ queries to get the user's Stats, is there a better method?

Any tips that you suggest I further research?

 

Thanks

Link to comment
Share on other sites

There may be a better method, but without seeing the code, db/table structures, sample data, expected results, etc., there's no way to tell for sure.

+1

 

I'm taking a wild guess and assuming that all the information is in one database (each row is a user, and contains all of the information for that user).

 

You can get multiple rows from a database with one query. See the following links:

PHP MySQL Select - W3Schools

MySQL Query Strings Tutorial - W3Schools

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.