Error in bugfree login, php error

Source: Internet
Author: User
Error in bugfree login, php error. Help HPErrormysql_escape_string (): Thisfunctionisdeprecated; usemysql_real_escape_string () instead. & nb bugfree logon error, php error. 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
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 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 );

------ Solution --------------------
Mysql_escape_string (): This function is deprecated; use mysql_real_escape_string () instead
The mysql_escape_string () function is obsolete and replaced by mysql_real_escape_string ().

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.