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
();
//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
* 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
* 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
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
5 matches
Mail list logo