PDA

View Full Version : include problem


hidjra
10-22-2002, 12:28 PM
hi,

i have a problem with php include. this is how i want it to work


<?php
$poll = include ("poll_inc.php");
$header = "blablablablablabla";

// ############ start index ############
if ($action=="1") {
eval("?".">".$header);
print ("<table border="1" width="100%">
<tr>
<td width="50%">$poll</td>
<td width="50%"></td>
</tr>
</table>");
}
?>


but it just puts the output of poll_inc.php on top of everything instead of where i've put $poll. what did i do wrong?

hidjra
10-23-2002, 10:20 AM
no one?? :(