0

Currently, I am building a table full of content. I can sucessfuly make one row that has one cell (the first cell) saying data, however when I attempt to use php to echo something, it does not show up. Why is this? If you need my whole program I would be happy to include it, however to stay clean I am going to only include a section of the table.

Code:

   <tr>
    <td>data </td>
    <td><?php echo "hi"; ?> </td>
    <td> </td>
    <td> </td>
</tr>
Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
user3496349
  • 189
  • 2
  • 11

1 Answers1

0

What you are doing is very right. There are two reasons why that may not be working. 1- check if your filename ends with .php and 2- check if you are running your code from a webserver that supports php.

To know if php is installed just try to right a simple php page iwth the following content.

if it renders it means you have php installed

MaleihMaxime
  • 63
  • 1
  • 13