954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

include php file in results

Hi everyone, just wondering if its possible to include

<?php require "../includes/h.php"; ?>

into the code below ??

echo "<td valign='top'><div class='p'>
<hr> add button menu here <hr></div></td>";
echo "</tr>";

I have tried a few different ways adding '..' for concactination to see if that works, but it still fails -

Just wondering if what I am trying is possible and if someone can point me in the right direction that woud be great

LloydFarrell
Junior Poster
101 posts since Dec 2009
Reputation Points: 10
Solved Threads: 0
 

Since you are trying to include it into some PHP code, you don't need the <?PHP or ?> just the require statement itself. You only need to use <?PHP ... ?> when you are inserting some PHP code into (raw) HTML statements.

chrishea
Nearly a Posting Virtuoso
1,428 posts since Sep 2008
Reputation Points: 210
Solved Threads: 230
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: