PHP warning

Undefined variable $t

/home3/jilan/public_html/protected/views/students/display.php(56)

44                                                                     </div>
45                                                                     <div class="media-body p-mb-none-child media-margin30"> 
46                                                                         <h3 class="title-semibold-dark size-lg mb-15">
47                                                                            <a href="'.REDIRECT .'students/display?id='.$row['id'].'"> '.substr(trim(strip_tags($row['title'])), 0, 30).'</a>
48                                                                            
49                                                                         </h3>
50                                                                         <p>'.nl2br(substr(trim(strip_tags($row['contents'])), 0, 40)).'</p>
51                         <p align="right"><a href="'.REDIRECT .'students/display?id='.$row['id'].'">Read more &raquo;</a></p>
52                                                                     </div>
53                                                                 </div></div> ';
54                         $t=1;
55                         }
56                         if($t==0)
57                         echo "<p>No records found ! Please visit soon.</p>";
58                         ?>
59     </div>
60   <!--google_ad_section_start-->
61 </section>
62 </div>
63        <!--<div class="col-xl-4 col-lg-12">
64             <?php //require_once dirname(__FILE__) . '/../layouts/right.php'; ?>
65         </div>-->
66     </div>
67 </section>

Stack Trace

#4
+
 /home3/jilan/public_html/protected/controllers/StudentsController.php(68): CController->render("display")
63          
64        public function actionCountry() {
65         $this->render('country');
66     }
67     public function actionDisplay() {
68         $this->render('display');
69     }
70 
71     public function actionExamandresults() {
72         $this->render('exam-and-results');
73     }
#17
+
 /home3/jilan/public_html/index.php(22): CApplication->run()
17     defined('YII_DEBUG') or define('YII_DEBUG', true);
18 // specify how many levels of call stack should be shown in each log message
19     defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
20 
21     require_once($yii);
22     Yii::createWebApplication($config)->run();
23 }  
2026-03-11 00:29:07 Apache Yii Framework/1.1.10