Re: [PHP] mysql connect function in my class

2004-04-15 Thread Aidan Lister
uot; <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, April 15, 2004 1:35 AM > Subject: Re: [PHP] mysql connect function in my class > > > > * Thus wrote Andy B ([EMAIL PROTECTED]): > > > hi > > > i have this function inside a class th

Re: [PHP] mysql connect function in my class

2004-04-14 Thread Andy B
(); //and the msg itself if we want $ErrorMsg=mysql_error(); return false;} else{return $link;}} or however the best way goes for that... - Original Message - From: "Curt Zirzow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 15, 2004 1:35 AM Subject: R

Re: [PHP] mysql connect function in my class

2004-04-14 Thread Curt Zirzow
* Thus wrote Andy B ([EMAIL PROTECTED]): > hi > i have this function inside a class that im writing that eventually i want > to put inside a package of my own... the function goes like this: (comment > block included): > > /** > *function Connect: open connection to database. > * > [EMAIL PROT

Re: [PHP] mysql connect function in my class

2004-04-14 Thread Curt Zirzow
* Thus wrote Greg Donald ([EMAIL PROTECTED]): > On Wednesday 14 April 2004 07:12 pm, Andy B wrote: > > function Connect($host, $mysqluser, $mysqlpwd){ > > $link=mysql_connect($host, $mysqluser, $mysqlpwd) > > if(!$link){ return false; } > > else { return $link; }} > > should i keep it like this or

Re: [PHP] mysql connect function in my class

2004-04-14 Thread Greg Donald
On Wednesday 14 April 2004 07:12 pm, Andy B wrote: > function Connect($host, $mysqluser, $mysqlpwd){ > $link=mysql_connect($host, $mysqluser, $mysqlpwd) > if(!$link){ return false; } > else { return $link; }} > should i keep it like this or is it better for the function itself to deal > with error