Page 1 of 1

iframes - database content

Posted: Sat Mar 27, 2004 10:58 am
by jarow
Is there anyway of creating an iframe and post the results of a database query in it?


For example: if my iframe is the following

<IFRAME SRC="???" SCROLLING="yes" WIDTH="100%" HEIGHT="100" MARGINWIDTH="0" MARGINHEIGHT="0" FRAMEBORDER="0">bbb</IFRAME>

if it can be done what would the src be? and where would I post the following echo statement.

<?php echo nl2br ($row_cv['publicaciones']); ?>

Many thanks

Posted: Sat Mar 27, 2004 11:17 am
by bawla
make a php file put the database query in it, and load up the php file into the iframe

Posted: Sat Mar 27, 2004 11:37 am
by jarow
if the query is already in the page the iframe is in, why can't I call it to itself?

Posted: Sat Mar 27, 2004 11:53 am
by bawla
hmm, good question lol