Re: how can i get rid of this error ?

From: Date: Tue, 27 Sep 2005 11:25:28 +0000
Subject: Re: how can i get rid of this error ?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-223259@lists.php.net to get a copy of this message
On 9/27/05, Bulent <bmalik@ihlas.net.tr> wrote: > here is the concerning line; > about line "mysql_close($sonuc3);" > > @mysql_connect($server,$kullanici,$sifre) or die("sql server baglanamadi"); > @mysql_select_db($vt) or die("tabloya baglanamadi"); > $sonuc3=mysql_query($sorgu3) or die("dosya açilamadi-1"); [...] > mysql_close($sonuc3); $sonuc3 is a mysql result resource NOT a mysql connection. You can't close it. If you want to close the connection that you just opened then call mysql_close() without any parameters. -robin

« previous php.general (#223259) next »