DreamsCoder.com

We Code your Dreams


home > How to store and display regional languages code in PHP MySql




How to store and display regional languages code in PHP MySql







Before storing the regional language data into
MySql do small updates

  • 1. Change your table structure and set the Collation
    to utf8_unicode_ci.
  • 2. Include the following lines before executing the query.

    Click here for Live Demo



    Write these statements before execting Query
    
    @mysql_query("SET NAMES 'utf8'"); 	
    @mysql_query("SET CHARACTER_SET utf8");
    
    include this tag in HTML page
    
    /*To display regional language format */

    Label - database





    by - Chinmay Mahajan





  • Are you looking for something else?


    Suggested Programs




    Creating Table in MySql