farhath Posted January 11, 2003 Share Posted January 11, 2003 Hi Is there anyway I can output an HTML page, with all the formatting, in a cell of a table, using PHP? Link to comment https://forums.phpfreaks.com/topic/38-php-and-html/ Share on other sites More sharing options...
Uranium-235 Posted January 11, 2003 Share Posted January 11, 2003 that\'s one of the points of PHP and this needs to be in newbies Link to comment https://forums.phpfreaks.com/topic/38-php-and-html/#findComment-94 Share on other sites More sharing options...
effigy Posted January 11, 2003 Share Posted January 11, 2003 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? Link to comment https://forums.phpfreaks.com/topic/38-php-and-html/#findComment-95 Share on other sites More sharing options...
farhath Posted January 14, 2003 Author Share Posted January 14, 2003 thanks Link to comment https://forums.phpfreaks.com/topic/38-php-and-html/#findComment-108 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.