Re: database
| From: | alain dhaene | Date: | Tue, 28 Oct 2003 06:54:08 +0000 |
| Subject: | Re: database | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167845@lists.php.net to get a copy of this message | ||
It works,
Thx
"John Nichel" <jnichel@by-tor.com> schreef in bericht
news:3F9DBBDE.9020502@by-tor.com...
> alain dhaene wrote:
> > I have try
> > but I get the following error:
> >
> >
> > Warning: mysql_close(): supplied argument is not a valid MySQL-Link
resource
> > in /home/schoolre/public_html/Hitek/Online/connectie.php on line 16
> >
> > Alain
> <snip>
>
> Look here....
>
> http://us4.php.net/manual/en/language.variables.scope.php
>
> Your $link only has the scope of that function. You can either pass it
> to the function, or put this line inside of your function....
>
> global $link;
>
> --
> By-Tor.com
> It's all about the Rush
> http://www.by-tor.com