iframes - database content

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

Post Reply
jarow
Forum Commoner
Posts: 83
Joined: Tue Jan 28, 2003 2:58 am

iframes - database content

Post 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
User avatar
bawla
Forum Contributor
Posts: 116
Joined: Fri Mar 19, 2004 9:15 am

Post by bawla »

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 »

if the query is already in the page the iframe is in, why can't I call it to itself?
User avatar
bawla
Forum Contributor
Posts: 116
Joined: Fri Mar 19, 2004 9:15 am

Post by bawla »

hmm, good question lol
Post Reply