<?php
mysql_connect("localhost","root","");
mysql_select_db("test");
$data= mysql_query("select * from tbl_files where sl.no=1");
$rec= mysql_fetch_row ($data)
header("content-type:$rec[2]")
echo $rec[1];
?>
error
Parse error: syntax error, unexpected 'header' (T_STRING) in C:\xampp\htdocs\readfromdb.php on line 6