Can anyone tell how to increment the serial number, now i m displaying $i value for that, its displaying 1,2,3,4,5. if next set of question again it displaying 1,2,3,4,5
But i need for 1st set 1,2,3,4,5
and then 2nd set 6,7,8,9,10.
to display my question number
How can i do this
Thanks in Advance.