![]() |
More rows from join clauses
How can I get all the rows from a join clause? instead of 1?
|
PHP Code:
|
PHP Code:
|
By default you should always get more then 1 if there is more then one. As long as you dont have a limit 1 on the end of the query. and aaron isnt that method really slow? (no backing on that statement)
|
Count is extremely slow. That was just something I was wondering about (it had no point whatsoever)
The only thing about my query was not using WHERE. |
Quote:
|
Then our SQL knowledge fails.
|
Can you post the Query? or there isnt much else we can do.
|
sql Code:
I only get 1 row from member_ratings |
wow thats a hell of a query. Are you sure there even is more then 1 row that should be returned? you have quite a bit of restrictions on that. Also it might be better to break that into more then 1 query, I bet that runs hella slow im gonna guess at least 10 seconds, if the tables have some sort of data in them.
|
Tried multiple queries, didn't work, and I didn't like the idea in the first place.
By the way, it takes me 1 second. with a cache at least.. With cleared cache, it took 2 seconds. :P |
Should I reconstruct my code to work with a multiple query? Cause that's what it is, or at least I believe it 100% :P
|
Nevermind, I DID reconstruct the queries and code, and I now have it where theres two queries for the post data and then for the ratings for the post data, inner while loops :p
|
So is this solved?
Also, is it better to force the browser to cache your page, or cache it on the server, or both? O.o |
Quote:
|
| All times are GMT. The time now is 05:55 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0