Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.1.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-24-2011, 10:06 AM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 47,531
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

I think I see the error...

Just replace everything on that page between the End Prepwork and Begin Template with this:

PHP Code:
if($isloggedin == "yes"){

    
$group getgroup();
    
$cancp cancp($group);

    if(
$cancp == "yes"){
    
        
$article_title "Promo Codes";
        
$article_content "<table width='400' border='1'><tbody><tr><td><b>Type</b></td><td><b>Reward</b></td><td><b>Promo Code</b></td></tr>";
        
        
$query "SELECT * FROM " .$prefix "adoptables WHERE whenisavail='promo'";
        
$result mysql_query($query);
        
$num mysql_num_rows($result);
        
        
$i=0;
        while(
$i $num){
            
$promocodes = @mysql_result($result,$i,"promocode");
            
$type = @mysql_result($result,$i,"type");
            
            
$article_content $article_content."<tr><td>Adoptable</td><td>".$type."</td><td>".$promocodes."</td></tr>";
            
$i++;
        }
        
        
$article_content $article_content."</tbody></table>";
    }else{
     
        
$article_title "Access Denied";
        
$article_content "Access Denied";
        
    }
    

The issue is $i is not involved in the array, so it's only reading the first row. I'm not great with arrays so I just reverted it to results...
__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Promocodes can be claimed more than 1 time. LucasA33 Questions and Supports 2 12-09-2012 01:52 PM
I can't make my adoptables show up/active! MintChip Questions and Supports 25 10-04-2012 09:45 PM
Multiple Alternate Image Plugin Kaeliah Mys v1.2.x Mods 40 03-25-2012 03:47 AM
EpicStats Plugin [by Kae] Kaeliah Mys v1.2.x Mods 9 04-10-2011 07:46 PM
Admins Can View All Active Promo Codes HIddenPanda Mys v1.1.x Mods 0 07-15-2010 06:55 PM


All times are GMT -5. The time now is 05:12 AM.

Currently Active Users: 3242 (0 members and 3242 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636