Bugfree Landing Error, PHP error

Source: Internet
Author: User
Tags php error stack trace
Bugfree landing error, PHP wrong. Help
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<[email protected]>
553 * @param string $fieldName fieldName
554 * @param string $operatorName =,<,>,<= eg.
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 ';
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);

------Solution--------------------
Mysql_escape_string (): This function is deprecated; Use Mysql_real_escape_string () instead
Mysql_escape_string () function is deprecated and replaced with mysql_real_escape_string ()
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.