Jump to content

Archived

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

farhath

PHP and HTML

Recommended Posts

Hi

Is there anyway I can output an HTML page, with all the formatting, in a cell of a table, using PHP?

Share this post


Link to post
Share on other sites

imbed the code you need into a loop and wrap the html codes around the variable, for example, this prints out a table with 10 rows, each row being numbered:

 

[php:1:06ecf63455]

<table>

<?php

for($i=0;$i<10;$i++)

{

echo(\"<tr><td>$i</td></tr>\");

}

?>

</table>

[/php:1:06ecf63455]

 

i\'m guessing this code was placed in mysql because you want to format information from a database into a table?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.