Thanks!
I've been fairly successful with this. But although I get two frames displaying, I don't seem to get the third and last one - can't work out why - thanks for your help again!
<?php
echo '<FRAMESET FRAMEBORDER=0 BORDER=0 FRAMESPACING=0 ROWS="100,,105" cols=""> ';
echo '<FRAME SRC="currpag/topndxfm.htm" NAME="topframe" MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO NORESIZE>';
$db = mysql_connect(usual stuff)mysql_select_db(usual stuff);
$sql="SELECT * FROM CURRAGHCARPETS";
$result=mysql_query($sql);
$rows = mysql_num_rows($result);
echo '<FRAMESET FRAMEBORDER=0 BORDER=0 FRAMESPACING=0 COLS="16%,16%,16%,17%,17%,16%"> ';
for ($counter = 0; $counter < $rows; $counter++) {
$frame='<FRAME SRC="currpag/'.mysql_result($result,$counter,"pagename").'" NAME="Frame3589" MARGINWIDTH=0 MARGINHEIGHT=0 NORESIZE>';
echo $frame;
}
echo '<FRAMESET>';
echo '<FRAME SRC="currpag/bottom.htm" NAME="bottomframe" MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO NORESIZE frameborder="NO">';
echo '<NOFRAMES> ';
echo '</NOFRAMES>';
echo '</FRAMESET>';
?>
It's this bit that doesn't seem to work:
echo '<FRAME SRC="currpag/bottom.htm" NAME="bottomframe" MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO NORESIZE frameborder="NO">';
Thanks again
Elizabeth