<html>
<!-- BEGIN WEBMAIL STATIONERY -->
<head></head>
<body>
<!-- WEBMAIL STATIONERY noneset -->
<DIV>I have run into an unsual problem and I'm wondering if anyone can tell me why it is happening. I have a database class that uses PHP 5 and MySQL 5. It interacts with a table called "photos" and it does inserts, updates, deletes, selects, and sorting. I included this class once at the top of my page and I created one instance of it. I use it throughout the page to do the inserts, updates, deletes, selects, and sorts.</DIV>
<DIV> </DIV>
<DIV>At the top of my page I have an include to the class file and then:</DIV>
<DIV> </DIV>
<DIV>$objPhotos = new Photos();</DIV>
<DIV> </DIV>
<DIV>It runs just fine on the webserver (Solaris 10 and Apache 2), but it breaks on my computer (Windows XP running Apache 2). To get it to run on my computer, I have to instantiate the object each time I invoke one of the methods and then set it to null before I use it again. So, I end up with:</DIV>
<DIV> </DIV>
<DIV>$objPhotos = new Photos();</DIV>
<DIV>$objPhoto->dosomething();</DIV>
<DIV>$objPhotos = null;</DIV>
<DIV> </DIV>
<DIV>every time I want to do something.</DIV>
<DIV> </DIV>
<DIV>Can anyone tell me what is causing this?</DIV>
<DIV> </DIV>
<DIV>Carl Olsen</DIV>
<DIV><A href="http://www.drake.edu/">http://www.drake.edu/</A></DIV>
<DIV> </DIV>
<!-- END WEBMAIL STATIONERY -->
</body>
</html>