Showing posts with label Web Development. Show all posts
Showing posts with label Web Development. Show all posts

06 December 2010

Fix MySQL Character Encoding Problem UTF-8 PHP

While gathering data from Mysql database i got character encoding problems when my tables have non-english text.
I found a solution that completly solves character encoding problem while you calling your sql queries.

Simply set your character set before you call a sql query.
$myconnection= mysql_connect(DB_SERVER, DB_USER, DB_PASS)
or die(mysql_error());
mysql_select_db(DB_NAME, $myconnection) or die(mysql_error());
mysql_set_charset('utf8',$myconnection);

mysql_set_charset method sets your character set before the calls.
Don't forget to encode your php files to utf-8, or what encoding you want to encode with.

25 November 2008

Favicon Generator How To Add Favicon to Your Website ico

favicon Favicons are the little images, icons that appears in left of the browser address bar and bookmarks menu.

Favicon
size is 16x16 pixel. Favicons are very important feature, visitors may remember a website from its favicon.
Favicon
is kind a symbol of a website.
How to add a favicon in your website html.
  • Create a favicon online easily visit the link below and create your favicon online.
FavIcon Generator Online
  • Upload your favicon into your hosting site.
  • Add the html tag below into your website, between head tags.
<link href="images/favicon.ico" rel="shortcut icon" />
Done.

Other favicon generator resources:

http://www.favicon.cc/
http://www.degraeve.com/favicon/
http://www.favicon.co.uk/