Re: [PHP] function troubles...

2005-03-17 Thread Chris Ramsay
Will Whatever you are making available in the required file sql.php, it is not accessible by the function shit_func. Define the connection string or whatever as a global inside function shit_func and it should work, else make the connection within the function - not such a good idea... chris --

[PHP] function troubles...

2005-03-17 Thread William Stokes
I don't know whats wrong with this. Can someone help please. This will print: "shaisse" but nothing else. I need to know why the other variables won't print. The sql query worksand echoes work if not used in function. I tested it in an other file and it worked but when I put it in a function