Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-05-2013, 04:31 AM   PM User | #1
durangod
Senior Coder

 
Join Date: Nov 2010
Posts: 1,177
Thanks: 214
Thanked 31 Times in 30 Posts
durangod is on a distinguished road
is SET NAMES still common practice

Is it still common practice to use this

PHP Code:
mysql_query("SET NAMES 'utf8'"); 

This is the first i have seen this and from what i understand it is not widely used that much.

I plan to convert it to

PHP Code:
mysqli_query($dbconnect"SET NAMES 'utf8'"); 
Thanks

Update I do see where it has to be set prior to mysqli_real_escape_string

Last edited by durangod; 02-05-2013 at 04:36 AM..
durangod is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:32 PM.


Advertisement
Log in to turn off these ads.