Posted by Robin Vickery on 09/27/05 14:25
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
Navigation:
[Reply to this message]
|