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
e: [PHP] mysql connect function in my class > * 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 i

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: Re[2]: [PHP] mysql connect function in my class

2004-04-14 Thread Curt Zirzow
* Thus wrote Andy B ([EMAIL PROTECTED]): > >How many versions of the wheel exist in the world >today? ...not many > >hacked out of stone I bet :-) > > > >-- > >regards, > >Tom > > what does that mean?? is everybody saying i should give up on this idea > then?? yes and no. Writing a database laye

Re[4]: [PHP] mysql connect function in my class

2004-04-14 Thread Tom Rogers
Hi, Thursday, April 15, 2004, 2:57:48 PM, you wrote: >>How many versions of the wheel exist in the world >today? ...not many >>hacked out of stone I bet :-) >> >>-- >>regards, >>Tom AB> what does that mean?? is everybody saying i should give up on this idea AB> then?? What I am saying is that it

Re: Re[2]: [PHP] mysql connect function in my class

2004-04-14 Thread Andy B
>How many versions of the wheel exist in the world >today? ...not many >hacked out of stone I bet :-) > >-- >regards, >Tom what does that mean?? is everybody saying i should give up on this idea then?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

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[2]: [PHP] mysql connect function in my class

2004-04-14 Thread Tom Rogers
Hi, Thursday, April 15, 2004, 10:35:58 AM, you wrote: GD> On Wednesday 14 April 2004 07:12 pm, Andy B wrote: GD> Why reinvent the wheel? GD> http://pear.php.net/packages.php?catpid=7&catname=Database GD> -- GD> Greg Donald GD> [EMAIL PROTECTED] How many versions of the wheel exist in the wo

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

[PHP] mysql connect function in my class

2004-04-14 Thread Andy B
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 PROTECTED] string $host mysql hostname to connect to [EMAIL PRO