[PHP-DB] Help with making a class or connect function

2002-09-03 Thread frank mancuso
Hi I made this. ? //config.php $sqlhost = localhost; $sqluser = root; $sqlpasswd = password; $sqldatabase = project; ? ? //sqlclass.php require('config.php'); class Connect { var $link; function Connect() { $this-link = mysql_connect($sqlhost,$sqluser,$sqlpasswd); $select =

[PHP-DB] Re: mysql_connect

2002-09-03 Thread frank mancuso
try this. ?php $sqlhost = localhost; $sqluser = root; $sqlpasswd = password; $sqldatabase = test; //using pconnect to stay connect all the time to //close the connect use mysql_close($link); $link = mysql_pconnect($sqlhost,$sqluser,$sqlpasswd); mysql_select_db($sqldatabase); ? - Original

[PHP-DB] Re: Help with making a class or connect function

2002-09-03 Thread frank mancuso
server); } mysql_select_db($sqldatabase); }//end of function connect }//end of class ? than to call the link I just did. $class = new Connect; $class-link; So anybody want more info on how to use this class I made email me at [EMAIL PROTECTED] cheers :) Frank Mancuso [EMAIL PROTECTED