Jump to content


Photo

PHP and HTML


  • Please log in to reply
3 replies to this topic

#1 farhath

farhath
  • Members
  • Pip
  • Newbie
  • 2 posts
  • LocationMaldives

Posted 11 January 2003 - 06:54 PM

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

#2 Uranium-235

Uranium-235
  • Members
  • PipPip
  • Member
  • 21 posts

Posted 11 January 2003 - 08:33 PM

that\'s one of the points of PHP

and this needs to be in newbies
Random Quote:[br][br][url=http://www.paintbug.com/scripts/quote_source.phps]

#3 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 11 January 2003 - 08:37 PM

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?
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/

#4 farhath

farhath
  • Members
  • Pip
  • Newbie
  • 2 posts
  • LocationMaldives

Posted 14 January 2003 - 05:14 PM

thanks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users