Just Come back…………. July 31, 2008
Posted by Shamim Ahmed in Php.add a comment
Sorry I was busy due to my 5th semister final exam and my CCNA course so i could not post any topics. now I am few free so today I design a template as part of project on RUET(online result System). now I will give my total project serially. today just i given the tamplate view.
In the next post i will discuss details…………thanks
How to Insert bangla in php Mysql database. April 24, 2008
Posted by Shamim Ahmed in Php.2 comments
if you know how to insert data in English language to mysql database, then It is very easy for you to insert bangla in phpmysql batabase , just you must have write two line extra code in php. for example
<body>
<?php
$con=mysql_connect(“localhost”,”root”);
if(!$con)
die(‘could not connect:’. mysql_error());
mysql_select_db(‘bangla’,$con);
mysql_query(‘SET CHARACTER SET utf8′,$con); //Extra for Bangla
mysql_query(“SET SESSION collation_connection=’utf8_general_ci’”,$con) ; // Extra for Bangla
$sql=”INSERT INTO info1 VALUES (‘$_POST[roll]‘,’$_POST[name]‘,’$_POST[dept]‘)”;
if(mysql_query($sql,$con))
echo “One row created”;
else
echo “Error creating row”.mysql_error();
mysql_close($con);
include “shamim.php”;
?>
</body>
I have marked two extra line code using Italic which is needed for bangla input. I hope if you follow this instruction then it will be very easy for you.
N.B: first you need to installed AVRO Unicode and Avro keyboard
