03-14-2007, 03:01 PM
ternary operators are pretty efficient, i dont know why you wouldnt want to use that...was the first thing i thought of before i read that you had already come up with that.
num_on_page_X = num_results - (max_per_page *( current_page_X - 1))
?
so this would = 12 - (5 * 2) = 2
num_on_page_X = num_results - (max_per_page *( current_page_X - 1))
?
so this would = 12 - (5 * 2) = 2
2013 Cadillac ATS....¶▅c●▄███████||▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅||█~ ::~ :~ :►
2008 Chevy Malibu LT....▄██ ▲ █ █ ██▅▄▃▂
1986 Monte Carlo SS. ...███▲▲ █ █ ███████
1999 F250 SuperDuty...███████████████████►
1971 Monte Carlo SC ...◥☼▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙☼◤
2008 Chevy Malibu LT....▄██ ▲ █ █ ██▅▄▃▂
1986 Monte Carlo SS. ...███▲▲ █ █ ███████
1999 F250 SuperDuty...███████████████████►
1971 Monte Carlo SC ...◥☼▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙☼◤
