$start_pos = ($_GET['start_pos']) ? $_GET['start_pos'] : '0'; $end_point = ($_GET['end_point']) ? $_GET['end_point'] : '10'; * for($i = $start_pos; $i <= $end_point; ++$i) { echo $i*30; }