When selecting an amount of rows, how can I select a percentage of a percentage?
Posted
by Rob
on Stack Overflow
See other posts from Stack Overflow
or by Rob
Published on 2010-05-07T05:04:56Z
Indexed on
2010/05/07
5:08 UTC
Read the original article
Hit count: 363
Fairly simple question:
Say I want to use 30 percent of the rows in the table of my MySQL table.
However I also have a user input where they can select a percentage of that percentage
For example: $_GET['percentage']% of 30%
so we say that $_GET['percentage'] = 30
How would I select 30% (or $_GET['percentage'])
of 30% to use in a while loop?
© Stack Overflow or respective owner