Re: how can i get rid of this error ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/27/05, Bulent <bmalik@xxxxxxxxxxxx> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux