Hi, anyone know why my the value of #page_number keeps changing?
I get it from the url using:
$page_number = $_GET['page_count'];
It works and is equal to 3 when it is first set, but after the rest of my code is run it is equal to 1?
I won't post all my code caise it's long, but here are the only section that $page_number shows up in my code.
$page_number = $_GET['page_count'];
if ($page_number = 1){
$counter = ($page_number * 10) - 10;
}else{
$counter = ($page_number * 10) - 9;
}
$number_count = ($page_number * 10) - 9;
$stop_count = ($page_number * 10);
Why is is it getting set to 1??