1.6 mysql num_rows error

#11
[eluser]Tobz[/eluser]
ah sweet, no more manually setting it.
don't spos you've made lots of helper string functions support utf-8 too? (strlen)

I can dream can't I Smile

#12
[eluser]moonbeetle[/eluser]
Quote:change the extra code in your model
Code:
$this->db->simple_query("SET NAMES 'utf8'");
the db->query tries to determine the number of rows returned
db->simple_query should not

before I upgrade from 1.5.4 to 1.6 I want to test the fix above as suggested earlier in this thread. But I have a question:
Quote:change the extra code in your model
Isn't there a more general way to change this in 1 place instead of ALL my models?

#13
[eluser]Derek Allard[/eluser]
Yes. If you follow the upgrade instructions you'll see 2 new config items
Code:
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";
This is a long thread and your question is very vague, so I'm not sure that answers what you are after, but I think it does.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.