Thanks for the reply....
Ohh...
yes, that was a silly mistake in for loop. I have corrected it.
But still, i'm having a problem.
This loop is getting executed for a single time only, and also values in the entries are inserted to 0,0...
However i use any number,
e.g.
for($i=0;$i<30;$i++)
it is executing for the single time only.
Can u please help me...???