Undefined variable

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
shadow007
Forum Newbie
Posts: 3
Joined: Thu Sep 11, 2008 2:21 pm

Undefined variable

Post by shadow007 »

Ok I get this error...

Notice: Undefined variable: master_division_list in /home/rdghq/public_html/roster/functions/display.php on line 344


heres the fragment of coee within the page and the line is colored in red. I dont know why im getting that error... If you need me to show you the php file then please adsk and ill send you a txt file version in a PM. *its 1,959 lines*

Code: Select all

                [color=#FF0000]if(is_array($master_division_list)) {[/color]
                krsort($master_division_list, SORT_NUMERIC);
                
                echo "<font size=1>";
                    foreach($master_division_list as $key=>$value) {
                        echo "<BR><u>".getRank($key)." - <b>".count($value)."</b></u><BR>";
                        asort($value);
                        foreach($value as $item) {
                            echo $item."<BR>";
                        }
                    }
                }
 
shadow007
Forum Newbie
Posts: 3
Joined: Thu Sep 11, 2008 2:21 pm

Re: Undefined variable

Post by shadow007 »

nvm, the problem was resolved.

lock please
Locked