This test code that I did is pretty much working for me. I took out the database statements just to see if the base PHP code would work. The database is not finished yet.
The only problem is that it only does the inside most loop.
It doesn't do the two loops out side it.
Don't understand why...looks like it should work to me.
<?php
$x=1;
$y=1;
$z=1;
while ($x<=5)
{
while ($y<=5)
{
while ($z<=5)
{
$art_info = preg_replace("/_/"," ", 'T_e_s_t');
printf('<para name = 1i1i%si%si%s value = "%s">
', $x, $y, $z, $art_info);
$z++;
}
$y++;
}
$x++;
}
?>
Can anyone see what's wrong with it?
Thanks,
Jaymz