Jump to content

Between Php And Html


suzie

Recommended Posts

Dear,I did an html Page that contains a Div with CSS: min-height:520px; height:auto;so that it expands with long content.when the file is .html it works properly in IE and Firefox.But when changing the extension to .php, in order to read data from sql, it will no longer works in firefox...the div will not expandany help please

Link to comment
Share on other sites

When PHP outputs an HTML document, all the PHP code is erased. Only the text remains. If a change has occurred, that means the resulting HTML has changed somehow.If you added SQL, then perhaps the SQL sections are outputting something that breaks your HTML.Have you examined your source code using View Source? It might shed light on the problem.

Link to comment
Share on other sites

Is the PHP code getting executed? As suggested by Deidre's Dad, do a "View Source" on the PHP page to make certain the PHP code is erased i.e. that the PHP output is exactly the same as the HTML page.If PHP is not being executed, the resulting code will likely kick the browser into quirks mode and/or create a few additional elements, which would be the cause of your layout's screwup.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...