Вверх

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

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(789): CWebApplication->runController("houses/viewJK")
784     {
785         // выполняем экшен(ы)
786         if ($GLOBALS['link']['name'] == 'kompleksy' && !$_GET['jk_name'])
787             Yii::app()->runController('houses/viewJKs');
788         if ($GLOBALS['link']['name'] != 'kompleksy' || $_GET['jk_name'])
789             Yii::app()->runController('houses/viewJK');
790     }
791     elseif ($GLOBALS['link']['name'] == 'pokupka_kvartiryi')
792         include "site/base/modules/buy_nedv/buy.php";
793     elseif ($GLOBALS['link']['name'] == 'orders')
794         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 
2017-12-17 05:26:50 nginx/1.10.2 Yii Framework/1.1.16