I have a frameset built from 2 frames.with OS as Linux.
Description: with the frameset having 2 frames.In First frame displaying PDF file names from database with hyperlink(href).By selecting any file corresponding PDF file should be displayed in second frame(from database)


frame.php:code
<html>
<frameset cols="25%,50%,25%">
<frame src="frame_a.php" name=framea>
<frame src="frame_b.php" name=framec>
</frameset>
</html>

In framea I am displaying the PDF filenames present in MySQL database (Tbl name: TblSearchArdem) these PDF Files are stored in LONGBLOB datatype format.
Fields in TblSearchArdem are:
Pdffilename varchar(50)
bin_data LONGBLOB
filetype varchar(50)

Framea:code
<html>
<script language="JavaScript">
function passText(str)
{


top.frames['frameb'] document.frmc.msgb.value = str;
}
</script>
<body>

<form name="frm1">

<div align="center">
<p align="center"><b>PDF File List</b></p>
<p align="right">

<?php
include_once('db_connect.php');
$query = "SELECT pdffilename FROM TblSearchArdem";
$result = @MYSQL_QUERY($query) or die('Error, query failed');
if(mysql_num_rows($result) == 0)
{
echo "Database is empty <br>";
}
else
{
while(list($pdffilename) = mysql_fetch_array($result))

{
$filename=$pdffilename;
?>
<a href ="javascriptassText('<?=$filename;?>')"><?=$filename?></a></p>

<?

$query1 = "select id,pdffilename,bin_data,filetype FROM TblSearchArdem where pdffilename='".$filename."'";
echo " select id,pdffilename,bin_data,filetype FROM TblSearchArdem where pdffilename='".$filename."'";
$result1 = @MYSQL_QUERY($query1);
$PDFNAME= @MYSQL_RESULT($result1,0,"pdffilename");
$data = @MYSQL_RESULT($result1,0,"bin_data");
// $type = @MYSQL_RESULT($result1,0,"filetype");
?>
<a href ="javascriptassText('<?=$data;?>')"><?=$filename?></a></p>
<?
}
} ?>

</form>
</body>
</html>

Problem:When I run frame.php I am able to get the list of all PDF File Names listed in framea . But when I select the PDF file name through link PDFFile will not be displayed in frameb.

Frameb:code
<html>
<head>
<body>
<form name="frmb">
<input type="text" name="msgb">
Frame b
</form>
</body>
</html>