Insert Tamil Text into Database Using PHP Mysql

Glad I found one to insert or store Tamil text into mysql database using php, It’s was really hard to find this solution and Never expect it would be so easy. I tried changing all utf8 character set in my database fields, Normally this would not but sometimes this won’t. Here is the code mysql_set_charset() Function will do the trick. down is the example

$link2 = mysql_connect(‘localhost’, ‘root’, ”)
or die(“Could not connect: ” . mysql_error());

$sql = ‘INSERT INTO `words` (`word`) VALUES (“???????????”);’;
$result = mysql_query($sql);

Hope this helps

This Post Has 0 Comments

Leave A Reply