[ create a new paste ] login | about

Link: http://codepad.org/MFq76u85    [ raw code | output | fork ]

PHP, pasted on Nov 9:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

$current_page = 1;
$total_pages = 4;

echo "$current_page"; 
echo "$total_pages ";
echo "\n";

if ($current_page >= 1 && ($current_page < $total_pages)) { 
echo "next button should be here"; 
} else {
echo "Nothing"; 
}

?>


Output:
1
2
14 
next button should be here


Create a new paste based on this one


Comments: