Does a return variable from a function have to be in the same table to have access to it. When I display a variable returned from a function I can display the result with success, however when I do the same in a different table on the same page it gives me a warning "Notice: Undefined variable".
Thanks in advance
Twb
Code: Select all
<?php
//works fine in a table...prints ou result
$records = querry_textboxs($val_from,$val_to);
echo "test ",$records;?>
<?php
//works fine in the same table as above
echo "test2 ",$records; ?>
<?php
//gives me the error Undefined variable
echo "test 3", $records; ?>