View Single Post
  #6  
Old 01-24-2011, 08:18 AM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 33,103
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

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...
__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]
Reply With Quote