Welcome Guest, Not a member yet? Register   Sign In
Active Record not showing the result UTF-8
#8

[eluser]souzadavi[/eluser]
People.. i got!!! i think.. the solution is in:http://ellislab.com/codeigniter/user-guide/general/styleguide.html#strings

Strings

Always use single quoted strings unless you need variables parsed, and in cases where you do need variables parsed, use braces to prevent greedy token parsing. You may also use double-quoted strings if the string contains single quotes, so you do not have to use escape characters.

INCORRECT:
"My String" // no variable parsing, so no use for double quotes
"My string $foo" // needs braces
'SELECT foo FROM bar WHERE baz = \'bag\'' // ugly

CORRECT:
'My String'
"My string {$foo}"
"SELECT foo FROM bar WHERE baz = 'bag'"


you should use {}. i just used {$title} in active record.



$title = $xml->channel->item[$i]->title;

$this->forum->where("topic_title = '{$title}'");// it should be better, but this way worked
$query=$this->forum->get('mytable')->row();


that´s it... thanks people....


Messages In This Thread
Active Record not showing the result UTF-8 - by El Forum - 01-19-2010, 11:41 AM
Active Record not showing the result UTF-8 - by El Forum - 01-19-2010, 01:19 PM
Active Record not showing the result UTF-8 - by El Forum - 01-19-2010, 01:33 PM
Active Record not showing the result UTF-8 - by El Forum - 01-19-2010, 01:44 PM
Active Record not showing the result UTF-8 - by El Forum - 01-19-2010, 01:49 PM
Active Record not showing the result UTF-8 - by El Forum - 01-19-2010, 01:55 PM
Active Record not showing the result UTF-8 - by El Forum - 01-19-2010, 02:15 PM
Active Record not showing the result UTF-8 - by El Forum - 01-19-2010, 04:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB