Re: [PHP-DB] Query in a function

2001-06-26 Thread Shahmat Dahlan
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

Re: [PHP-DB] Query in a function

2001-06-19 Thread Jimmy Brake
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 :-)

Re: [PHP-DB] Query in a function

2001-06-19 Thread Andreas D. Landmark
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.