PHP warning

Undefined variable $t

/home3/jilan/public_html/protected/views/jobs/display.php(59)

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

Stack Trace

#4
+
 /home3/jilan/public_html/protected/controllers/JobsController.php(70): CController->render("display")
65     public function actionSearch() {
66         $this->render('search');
67     }
68     
69       public function actionDisplay() {
70         $this->render('display');
71     }
72       public function actionSector() {
73         $this->render('sector');
74     }
75  public function actionPostjobs() {
#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-10 22:45:33 Apache Yii Framework/1.1.10