I'm using a simple while loop in my script. The while loop will execute the statement repeatedly, as long as the while expression evaluates to TRUE. The value of the expression is checked each time at the beginning of the loop, so even if this value changes during the execution of the statement, execution will not stop until the end of the iteration. Because the way the while loop works I'm getting an extra indexing in my array, which blows the rest of the script.
while ($row[] = mysql_fetch_array ($svar)){
}
I tried to change it to a do{ } while loop instead where the evaluation is made at the end of the loop. But didn't get it right.
Any suggestions?