When selecting an amount of rows, how can I select a percentage of a percentage?
- by Rob
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?