Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ratio Calculation

Status
Not open for further replies.

elhaix

Programmer
Jul 31, 2006
115
CA
Obviously there are a few ways of solving this problem, and some feedback would be appreciated.

I have a table of entries with a count beside each entry. The count represents a ratio of that entry's position in the overall data set.

Each entry will have its own page. On that page I want to set x number of links (which are entries of that table).

ie:
Entry 299
Count: 5

Entry 300
Count: 180

Thus, entry 300 would have a ratio of 180:1 on an entry with a count of 1, etc.

Now I want to be able to arbitrarily set the number of links to appear on a page, where no link is duplicated.

The last part isn't a problem, it's the link selection based on its ratio that I'd like crunched a bit.

There are a total of 40000 pages with 10 (the arbitrary number) link positions available.




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top