Okay, so this is my dillema. I have two pages, one is storing the connect functions and one is storing data for which the connect functions are required. These are the two pages.
connect.php
<?php
function dblink(){
mysql_connect(localhost,'***************','********');
mysql_select_db('*************');
}
?>
tag.php (there will be much more code, but after running into the problem, I just made a small test page. This is it.)
<?php
include "/blog/userlib/connect.php";
?>
<?php
dblink();
echo "yes";
?>
See, this is the problem: When simply including connect.php, there is no error, and the page echoes "yes", just as it should. But when the dblink(); function is called, the page echoes nothing, and in the earlier pages that actually has substance, the information that was supposed to be entered into MySQL wasn't inserted.
I've written this same sequence probably close to 1000 times, and I've never had this happen before.
Any help would be appreciated.
-Cass