PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
For some reason I still can't get this all to work. Should I put all the data inside the same php tags?
Far as I see it you changed "include" for "require" so I edited that part witch had no effect. I also tried to edit it by inserting the require in front of the place I would like to see the variable.
Just to make it more easy to explain at least I hope. I don't want to use this in a if/else statement. The variable holds a word that should be placed at the location the variable is inserted.
*Maby some usefull info: The variable is called inside a html table.
<?php
include 'file1.php';
if (!isset($this_var))
{
$this_var = 'I am nowhere to be found...';
}
echo $this_var;
?>
Put both of these files in the same folder. Then call file.php and see what comes out. The 'if' check is only checking to see if include worked. This is for testing.