DYWBH Posted June 20, 2011 Share Posted June 20, 2011 Hi I have two other blocks of PHP on my website, however within this part of the table nothing I write in PHP will show up. Any ideas why? <td style="background-color:#FFFFFF;height:542px;width:400px;text-align:top;"> <?php echo "hello world"; ?> </td> Quote Link to comment Share on other sites More sharing options...
Psycho Posted June 20, 2011 Share Posted June 20, 2011 There is nothing wrong with that code. PHP has no clue about where it is echoing content. It simply outputs the code and send the result to the browser.What is the background color of that page? have you checked the actual HTML source code? Quote Link to comment Share on other sites More sharing options...
Nodral Posted June 21, 2011 Share Posted June 21, 2011 Are you saving the file as .html or .php? It must be saved as .php to work? Quote Link to comment Share on other sites More sharing options...
cyberRobot Posted June 21, 2011 Share Posted June 21, 2011 Are you saving the file as .html or .php? It must be saved as .php to work? Not necessarily, .html files can be set up to interpret PHP code. Otherwise it would need to be named as a .php file. @DYWBH - Did you upload the code to a server; one that supports PHP? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.