RE: PHP help please
for both of them use global variables
e.g for the first one
add
global $data;
at the beginning of the function
and it will store the mysql data retrieved in the var and it will be usable outside of the function (also you then dont need the return line)
for the second one same thing applies, use global $actor; and global $writer;
|