CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Warning: mssql_close(): 10 is not a valid MS SQL-Link resource

Print topic Send  topic

Author Message
CodeChargenewbie

Posts: 114
Posted: 11/09/2007, 9:49 AM

I'm getting a rather odd error inside of before show event.
Quote :
// before show function begins

$db = new clsDBTESTdatabase();

// code goes here

$db->close();

// before show function ends
When I load the page, it gives me "Warning: mssql_close(): 10 is not a valid MS SQL-Link resource..."

I changed it to this:
Quote :
// before show function begins

global $db;
$db = new clsDBTESTdatabase();

// code goes here

$db->close();

// before show function ends

And I don't get that error anymore. This one also works:
Quote :
// before show function begins

$db = new clsDBTESTdatabase();

// code goes here

unset($db);

// before show function ends

What I don't understand is why. Can someone please explain this to me? Thank you.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.