Thread: database
View Single Post

  #6 (permalink)  
Old 10-28-2003
Alain Dhaene
 
Posts: n/a
Default Re: [PHP] database

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/languag...bles.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

Reply With Quote