Reply to even after proper error checking, I still get PHP warnings

Your name:

Reply:


Posted by lawrence k on 08/17/06 19:48

I've this class method, which makes sure I've got a variable that is a
resource:

function close() {
if (is_resource($this->datastoreResultsPointer)) {
mysql_free_result($this->datastoreResultsPointer);
mysql_close();
}
}

all the same, I'm getting these PHP errors:


Warning: mysql_free_result(): 286 is not a valid MySQL result resource
in
/home/httpd/vhosts/monkeyclaus.org/httpdocs/media/audio/pdsIncludes/McDatastoreResultsMySql.php
on line 89

Warning: mysql_close(): no MySQL-Link resource supplied in
/home/httpd/vhosts/monkeyclaus.org/httpdocs/media/audio/pdsIncludes/McDatastoreResultsMySql.php
on line 90


How is that possible?

[Back to original 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

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