i havent got it it working yet ...
so, here is more info concerning the code.
somewhere in 'php x' ...
//define function
my_function() {
//contains the 'php y' code that queries a db and processes misc variables to generate table cells (<td>...</td>)
}
//now open the table
echo '<table><tr>';
//add a table cell with misc content (instead of including a file here(containing the code of 'php y') I try to call that code through calling a function containing that code)
while ($num < $some_number) {
my_function();
$num++;
}
//close table
echo '</tr></table>';
if i just include the file with 'php y' everything works fine.
the function construction doesnt work yet. at this time the function doesnt seem to be able to process any varibales set in 'php x' beforehands. It outputs at least something ... but these are more or less just empty tablecells - by far not what the working script would produce.