iframes - database content

A

Anonymous

Guest
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
 
The src would be whatever PHP file retrieves the database contents.
 
Yeh, swirlee is right!
You can also target to the iframe using its name, if in your iframe src you have the file which will process the request (query) and show the result!
 
why use iframes???? please someone tell me whyyyyyyyyyyyyy
 
If you google it, you will know that iframes create small window like in the page (or a frame). I use it mainly for shout box. Have a look at this website

http://www.myshoutbox.com/
 
Back
Top