Re: [PHP-DB] problems with functions/included files/mysql resource

2007-03-28 Thread Jvhcom
Hello Neil and Chris, Here are the database-related functions that reside in their own separate file: function connecttodatabase() { global $link_resource; if(!($link_resource=mysql_connect('host', 'user_name', 'password'))) { printf(Error connecting to host %s, by user %s,

[PHP-DB] problems with functions/included files/mysql resource

2007-03-27 Thread Jvhcom
Hello Everyone, I am new to this or any news group. The end of this story is that I believe I am calling a function from within a function in a way that I should not be, but I cannot figure out exactly what part I am doing incorrectly. I have the following main file with other content included