You are here: Re: [PHP] how can i get rid of this error ? « PHP « IT news, forums, messages
Re: [PHP] how can i get rid of this error ?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация