function return

From: Date: Fri, 06 Apr 2001 15:10:11 +0000
Subject: function return
Groups: php.general 
Request: Send a blank email to php-general+get-47448@lists.php.net to get a copy of this message
i'm trying to make all my include files into functions for manageability. I have one function that i'd like to get to work.....heres teh code.. <?php $db = mysql_pconnect("localhost", "user" ,"pass"); mysql_select_db("database",$db); ?> i had it in a function and had the function return $db.....but didn't work.....any ideas? ~kurth

« previous php.general (#47448) next »