PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
jarow
Forum Commoner
Posts: 83 Joined: Tue Jan 28, 2003 2:58 am
Post
by jarow » Sat Mar 27, 2004 10:58 am
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
bawla
Forum Contributor
Posts: 116 Joined: Fri Mar 19, 2004 9:15 am
Post
by bawla » Sat Mar 27, 2004 11:17 am
make a php file put the database query in it, and load up the php file into the iframe
jarow
Forum Commoner
Posts: 83 Joined: Tue Jan 28, 2003 2:58 am
Post
by jarow » Sat Mar 27, 2004 11:37 am
if the query is already in the page the iframe is in, why can't I call it to itself?
bawla
Forum Contributor
Posts: 116 Joined: Fri Mar 19, 2004 9:15 am
Post
by bawla » Sat Mar 27, 2004 11:53 am
hmm, good question lol