Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Is your hosting and site ready for PHP 7.2
 
Reply
   X-Cart forums > General > General talk
 
Thread Tools
  #11  
Old 10-24-2018, 02:47 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,543
 

Default Re: Is your hosting and site ready for PHP 7.2

Quote:
Originally Posted by cflsystems
htmlspecialchars will convert to html codes - that's not what you want.
You want to escape the characters that may cause issues inserting in MySQL.

XC uses func_addslashes($var) in some cases which will do the work although it is not exactly the same as mysql_real_escape_string.
You can Google "addslashes vs mysql_real_escape_string" if you want to see the difference. In general it will work.

Code:
function mysql_real_escape_string($html_escape) { return func_addslashes($html_escape); }

If you want to see what this function does it is locate din prepare.php

addslashes works great and fixed an issue I created by using the other code.

Thank you so much Steve!
__________________
X-Cart GoldPlus v4.7.11 | PHP 7.2
  • XCARTMODS.CO.UK | reBOOT Template |
  • Smack Digital | CDSEO Pro 2.0 + Custom Replacements | Category SEO Map |
  • Total Server Solutions Hosting | Linux | PHP v7.2 | MySQL v5.6.40 |
Reply With Quote
  #12  
Old 10-30-2018, 01:16 PM
 
voodoo1967 voodoo1967 is offline
 

eXpert
  
Join Date: Sep 2009
Posts: 379
 

Default Re: Is your hosting and site ready for PHP 7.2

Upgraded to latest ver of php - no problems encountered
---------------------------------------------------------
Test Sig

Artists - Photographers - Galleries - Hotel use Bespoke Picture Mounts cut to size they are also known as Photo Mounts and can be cut to any size you want etc
Reply With Quote

The following user thanks voodoo1967 for this useful post:
elmirage001 (10-30-2018)
Reply
   X-Cart forums > General > General talk


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:31 PM.

   

 
X-Cart forums © 2001-2018