Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
davellaman #1
getting a user rank from database?
I want users to be able to see their current rank amongst other users. I am somewhat stuck on how exactly I would query my database and retrieve this information. Any ideas?
davellaman Guest
-
User Database Table
I am trying to follow the Matrix guided tour for creating a Users Database table. After creating the table, directions indicate to highlite the... -
HELP! Passing from database to asp page allowing user input then passing to another database.
My big problem is I'm a newbie working with someone else's code.(See code below) What I want to do is for the records that have a purchase order... -
Passing database info to page allow user input then pass into another database
Hi I really am going crazy! I'm using VBScript, ASP, and SQL My page reminds me of a shopping cart but looking at shopping cart examples has not... -
How to I RANK my list?
select name,marks, (Select count(distinct marks) from <table> where marks <= a.marks) RANK from <table> a -- -Vishal "Jay"... -
Another user has modified the contents of this table or view; the database row you are modifying no longer exists in the database;
Hi, I am testing a trigger that and I am getting this error message saying "Another user has modified the contents of this table or view; the... -
Don Vaillancourt #2
CFFORM Flash not caching
Hi all,
Where does CF store cached cfform flash forms? I've searched on every
computer which has CF7 installed and I can't find it.
I'll do a view source of the page which has the form in it and do a
search for the file, '/541738542.mxml.cfswf' which should contain the
flash form, but can't find that file.
It seems that CF7 doesn't cache the forms on any of our servers because
the forms take way too long to reload.
I'm looking at the flex-config.xml file and turning on the production
switch, but it's not helping.
Anyone have a clue?
Thanks
Don Vaillancourt Guest
-
mxstu #3
Re: CFFORM Flash not caching
Don,
Did your message get posted to the wrong thread? The forums seem to be a bit flaky this weekend.
mxstu Guest
-
mxstu #4
Re: getting a user rank from database?
Originally posted by: davellaman
I want users to be able to see their current rank amongst other users. I am
somewhat stuck on how exactly I would query my database and retrieve this
information. Any ideas?
What determines user rank in your application/database and what do you want to
display to the user (ex. Your rank is #10 out of 100, etc..)?
mxstu Guest
-
davellaman #5
Re: getting a user rank from database?
we would be displaying rank as 5 out of 500. Rank in database would be
determined by user points.
So if i were to order a query by points, i would then have the list in point
order, however, how do I then select the exact user I want to find and also how
do I get their exact spot in the points list?
Thanks,
Mark
davellaman Guest
-
mxstu #6
Re: getting a user rank from database?
And do you want to display the ranking for just the current user:
you are 5 out of 500
OR highlight the current user within a ranking of all users :
xxxx xxxxxx 1 out of 500
xxxx xxxxxx 2 out of 500
xxxx xxxxxx 3 out of 500
xxxx xxxxxx 4 out of 500xxxx xxxxxx 6 out of 500>>you are 5 out of 500<<
mxstu Guest
-
baz #7
Re: getting a user rank from database?
After getting your query by points, you can do a QofQ (query of
queries) on that data for each user that you need. So for example, if
you want Ted's rank you would write:
<cfquery name="anything" dbtype="query">
select Rank
from (originalquery)
where Username='Ted'
</cfquery>
Now you have a second query with ted's rank without hitting the DB
again.
baz Guest
-
mxstu #8
Re: getting a user rank from database?
One more thing, the code in the last post assumes that the scores for each user
will be unique. If they are not, you will need to add an additional clause to
determine the ranking when the scores are the same.
mxstu Guest



Reply With Quote

