Вверх

Поиск по названию

Error

Error

Call to undefined function mysql_real_escape_string()

/home/www/an24.org/backend/protected/controllers/HousesController.php(127)

115                 $params[':yr24_developer_id'] = Yii::app()->agent->byUrl->id;
116             }
117 
118             $geoAreas = GeoArea::model()->with('geoRegion', 'jks', 'jks.cover', 'jks.childs', 'jks.city', 'jks.area')
119                 ->findAll(['condition' => $condition, 'params' => $params, 'order' => 't.id']);
120             $this->render('view', array(
121                 'model' => $model,
122                 'geoAreas' => $geoAreas,
123             ));
124         }
125         else
126         {
127             $jkName = mysql_real_escape_string($jkName);
128             $q = mysql_query("SELECT c.html_block FROM links l LEFT JOIN content c ON (c.id_link = l.id) WHERE l.name = '$jkName'");
129             if ($q)
130             {
131                 $content = mysql_fetch_assoc($q);
132                 echo $content = $content['html_block'];
133             }
134             /*$command = Yii::app()->db->createCommand("SELECT c.html_block FROM links l LEFT JOIN content c ON (c.id_link = l.id) WHERE l.name = :jk");
135             $command->bindParam(":jk",$jkName,PDO::PARAM_STR);
136             echo $content = $command->queryScalar();*/
137         }
138     }
139 

Stack Trace

#5
+
 /home/www/an24.org/site/templates/default.php(788): CWebApplication->runController("houses/viewJK")
783     {
784         // выполняем экшен(ы)
785         if ($GLOBALS['link']['name'] == 'kompleksy' && !$_GET['jk_name'])
786             Yii::app()->runController('houses/viewJKs');
787         if ($GLOBALS['link']['name'] != 'kompleksy' || $_GET['jk_name'])
788             Yii::app()->runController('houses/viewJK');
789     }
790     elseif ($GLOBALS['link']['name'] == 'pokupka_kvartiryi')
791         include "site/base/modules/buy_nedv/buy.php";
792     elseif ($GLOBALS['link']['name'] == 'orders')
793         include "site/base/modules/buy_nedv/buy.php";
#6
+
 /home/www/an24.org/index.php(69): include("/home/www/an24.org/site/templates/default.php")
64 if (is_numeric($_GET[rid]) AND !isset($_COOKIE[refer]))
65     inc_ref_count($_GET[rid], true);
66 if (is_numeric($_COOKIE[refer]))
67     inc_ref_count($_COOKIE[refer], false);
68     
69 include "site/templates/default.php";
70 
71 
72 
73 
74 
2024-11-27 10:48:23 nginx/1.12.2 Yii Framework/1.1.16