answersLogoWhite

0

It is really simple to print an HTML table in PHP, all you have to do is the following:

<?php

print "<table>";

print "<tr>";

print "<td>hello</td>";

print "</tr>";

print "</table>";

?>

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you go from HTML form to php?

Build your form in HTML and specify your PHP file in the action of the document. HTML does the form stuff, PHP the processing (although you can - of course - use HTML inside PHP via print() or echo(), too)


How do you pass table values from one page to another using HTML?

You cant you have to use php or javascript.


How do you rectify HTML to PHP variable error?

To use HTML as variable in PHP . echo the html tag written in double quotes. Example : &lt;?php echo "&lt;table&gt;"; echo "&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;" echo "&lt;/table&gt;"; ?&gt;


How do you connect sqlserver with HTML?

using php


I have a HTML website I want to use a php script I have but the main php file has the info in it and I want it to be on the HTML site how can I embed or use the php code without using frames?

change the extention of the .HTML file to .php and then open the file that was previously HTML and put &lt;?php include ("path/to/second/php/file.php"); ?&gt; so for example if i have page1.HTML and page2.php i rename page1.HTML to page1.php and then put &lt;?php include ("page2.php"); ?&gt; where i want page2 to appear. Note: Any HTML file can be renamed to have a .php extention even if it doesnt contain any PHP.


How do you put HTML in PHP?

Its done exactly the same as when you put it in an HTML file. There are 2 ways you can do it: &lt;html&gt; &lt;?php // php stuff ?&gt; &lt;/html&gt; Or you can do it like this: &lt;?php echo "&lt;html&gt;"; // php stuff echo "&lt;/html&gt;"; ?&gt;


How do you get data back and forth between HTML and PHP?

Via AJAX. Another simpler way would be to use form elements and submit them via html and let PHP process the data. Processed data can be output in html form via echo or print statements in php.


How do you use PHP in HTML?

You can't use PHP in an HTML document, but you can use HTML in PHP script.


Is there any way to call a PHP script in HTML?

PHP is a server side language, so cannot run within the browser as HTML does. You can however make a call to the PHP page within your HTML (using a form button or anchor link for example), and using Ajax (javascript) make the HTML show the response of the PHP program. The user will not know that the server side PHP program has been executed, as when using Ajax the browser does not load a new page.


How can files be converted into HTML using PHP?

To rename a file in PHP the easiest way to do it is to use the rename() function. &lt;?php rename("before.txt", "after.html"); ?&gt;


How do you print a particular value using PHP?

To print a particular value in PHP you have to select which variable you wish to print. Below is an example of how this can be done. &lt;?php $var[1] = "Hello"; $var[2] = "Lalala"; print $var[2]; // prints Lalala but not Hello ?&gt;


Where does one put PHP encoding type headers?

One will put PHP encoding type headers before instructions using HTML language. This is done in order to start the HTML sequence through the PHP header.