您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

bugfree登陆报错,php错

2026/1/1 21:26:46发布15次查看
bugfree登陆报错,php错。求助
hp error
mysql_escape_string(): this function is deprecated; use mysql_real_escape_string() instead.
c:\xampp\htdocs\bugfree\protected\service\sqlservice.php(563)
551 *
552 * @author yupeng lee
553 * @param string $fieldname fieldname
554 * @param string $operatorname =,,555 * @param string $fieldvalue fieldvalue
556 * @return string query string for sql
557 */
558 private static function basegetfieldquerystr($searchfieldconfig, $type, $fieldname, $operatorname, $fieldvalue)
559 {
560 $basictablename = '{{' . $type . 'view}}';
561 $fieldvalue = trim($fieldvalue);
562 
563 $fieldvalue = mysql_escape_string($fieldvalue);
564 //handle search value %
565 $fieldvalue = str_replace('%', '\%', $fieldvalue);
566 // $fieldvalue = str_replace('_', '\_', $fieldvalue);
567 
568 $querystr = '';
569 if($fieldvalue == '')
570 {
571 return $querystr;
572 }
573 elseif(info::mark == $fieldname)
574 {
575 $inornotin = ' not in ';
stack trace
#0 +– c:\xampp\htdocs\bugfree\protected\service\sqlservice.php(563): mysql_escape_string(sample product) 
558 private static function basegetfieldquerystr($searchfieldconfig, $type, $fieldname, $operatorname, $fieldvalue)
559 {
560 $basictablename = '{{' . $type . 'view}}';
561 $fieldvalue = trim($fieldvalue);
------解决方案--------------------
mysql_escape_string(): this function is deprecated; use mysql_real_escape_string() instead
mysql_escape_string() 函数已废弃,用 mysql_real_escape_string() 代替
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product