is there a problem with php script pulling HTML out of database as it writes the page??



Hello. Again, I'm fairly new to php so please forgive me if my question is a very simple or obvious one.

I've just tried testing for the first time some php code that is pulling text out of a database to print it on the webpage. Some of this text includes HTML, specifically in this case an <img src="xxxxxxxxx"> statement. Much to my surprise, this is not working. Is there a problem with pulling HTML out of a database like this as the page is being written?

There's no problem of course if my php code is writing the HTML to the page - in this case, the <img src="xxxxxx"> statement works fine and the image is displayed. Why is it a problem when my php script pulls the HTML code out of a database and writes it to the page from there??

It would appear that when my php script writes HTML to the page a process of some kind is executed to, in this case, get the image and put it on the page. Apparently this same process is NOT executed if the HTML is retrieved from a database and simply written to the page from there. Is this correct? And, if it is, can anyone suggest a workaround, another way to get done what I'm trying to do here?

Thanks for any help you can give me.

Rod Clay


.



Relevant Pages

  • Re: following radio & hidden does not work..... help please.
    ... So you query the database for records and present the concatenated fname and lname for the user to choose from. ... This works the same with a radio button or a select statement. ... This is a HTML or PHP question! ...
    (alt.html)
  • PHP Dynamic Database Code
    ... I recently wrote some PHP classes that I think might be of interest to ... generate PHP code based on database table structure. ... database, I want it done for me by a script or through some Object ... let's look at the PHP code generated by the perl script: ...
    (comp.lang.php)
  • Re: Indent HTML portions question
    ... > the portion of the HTML where I jump out of php mode and back in again. ... // Connect to the database. ... errorMessage("One or more required fields were left blank. ...
    (comp.lang.php)
  • Re: Why not generate static pages instead of dynamic?
    ... html pages out there now, ... But querying a database, ... is fetched through AJAX or a 'more-dynamic' page (php ... dynamic/user-interaction page or not, and on that basis will serve the html ...
    (comp.lang.php)
  • Re: following radio & hidden does not work..... help please.
    ... Using a HTML radio button form as previously stated returns all the data as requested. ... The problem seems to be HOW does one get more than one database variable to be to the PHP action program. ... The objective of the form is to use either a or a radio button form so a user can select a person from the database. ...
    (alt.html)