Welcome Guest, Not a member yet? Register   Sign In
html special characters & mysql
#7

[eluser]kenjis[/eluser]
[quote author="NikosV" date="1268406200"]ok maybe i didn't myself clear... while i
Code:
function index($keyword='')
    {
            if(!empty($keyword))
        
        {    
            $is_resto_exist = $this->restaurant_model->is_resto_exist($keyword);        
                    
            
            if(isset($_SESSION['loggedin']) == 1)
            {            
                if($is_resto_exist)
                {
...
[/quote]

CI converts the string in $keyword to html entity.

How about below?

Code:
function index($keyword='')
    {
            $keyword = html_entity_decode($keyword);
            if(!empty($keyword))


Messages In This Thread
html special characters & mysql - by El Forum - 03-11-2010, 05:39 PM
html special characters & mysql - by El Forum - 03-11-2010, 05:41 PM
html special characters & mysql - by El Forum - 03-11-2010, 05:59 PM
html special characters & mysql - by El Forum - 03-11-2010, 06:26 PM
html special characters & mysql - by El Forum - 03-11-2010, 09:20 PM
html special characters & mysql - by El Forum - 03-12-2010, 03:03 AM
html special characters & mysql - by El Forum - 03-12-2010, 05:55 AM
html special characters & mysql - by El Forum - 03-12-2010, 07:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB