in reply to i could not abl to get proper result belowed mntioned code..

use CGI; use DBI; ...
?