Quote:
For some reason, it only loop the first promo code over and over.
Are you aware of this?
|
Is it repeating the adoptable type as well as the promocode?
You may want to replace the loop, give this a try:
PHP Code:
$i=0;
while($i < $num){
$article_content = $article_content."<tr><td>Adoptable</td><td>".$promocodes['type']."</td><td>".$promocodes['promocode']."</td></tr>";
$i++;
}
I don't know if that's the issue or not but that's how almost all the other loops in the script are set up so...