Hello,
I am trying to do a while loop and the loop does fine because I tested it using an echo statement.
However, Every time I remove the echo statement and place a MySQL Alter in there, it does not work.
$d = 1;
while ($d <= $depth)
{
$w = 1;
while ($w <= $width)
{
mysql_query("ALTER TABLE `$b` ADD `test$b$w$d` int unsigned not null");
$w++;
}
$d++;
}
But.... When I use the same Alter Phrase outside the loop it works fine.
What am I missing here? I do not understand why this will not work in the loop but does outside of it!
Thanks for your help!