How about declaring some of the variables as global variables.
regards
seriousj wrote:
Hello
I have a query that I have placed in a function that is in a file that I
include in the page to be displayed. It doesn't work. I know that the code
works because when I place the code in the page
errr maybe
you need to pass the function the values of the variables you are using either by
declaring them global inside the function:
global $server,$user,$pass,$type_id;
or passing them to the function directly:
function type_select($server,$user,$pass,$type_id)
hope this helps :-)
At 19.06.2001 09:21, you wrote:
Hello
I have a query that I have placed in a function that is in a file that I
include in the page to be displayed. It doesn't work. I know that the code
works because when I place the code in the page to be displayed directly it
works fine.
I can't figure it out.