$objConnect = mysql_connect("localhost","root","1234") or die("Error Connect to Database");
$objDB = mysql_select_db("mydb");
mysql_query("SET NAMES TIS620");
$select="select subject from smf_messages where ID_BOARD =18 limit 0,5";
$selectres=mysql_query($select) or die (mysql_error());
$result=mysql_fetch_array($selectres);
$num=mysql_num_rows($selectres);