Welcome Guest, Not a member yet? Register   Sign In
codeigniter issues with DB and special characters
#7

(05-10-2018, 04:20 AM)InsiteFX Wrote: In your sql queries.

yup i have added the escap string in the sql driver..

PHP Code:
// escape LIKE condition wildcards
        
if ($like === TRUE)
        {
            
$str str_replace(array('%''_''%ca'), array('\\%''\\_''\\%ca'), $str);
        }
        
        return 
$str


after saved, i reboot the db,  and when i insert 239.106.%card.%number

and save the txt data into my db it not stores only 239.106 no other data copied into the db

so it completelly wipes the data %card.%number
Reply


Messages In This Thread
RE: codeigniter issues with DB and special characters - by PortalNET - 05-10-2018, 10:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB