Show this once\";
print \"display everytime
\";
$i++;
}
?>
>
Rather than incrementing it every time the loop runs and wasting useless resource, what you can do is, if the value is 0 for the first time, then print the statement and make the value of the variable as non-zero. Just like a flag. Condition, you are not changing the value of the variable in between the loop somewhere. Something like this:
Show this once";
$i=1;
}
print "display everytime
";
}
?>