I have a strange mSQL problem that I can't figure out. The mSQL server runs fine and we can create databases and add tables, but whenever I code the following in PHP 4 I get a message that confuses me...
Here is the code I write for the webpage:
msql_connect();
msql_selectdb("database");
When the page loads it says:
Warning: 1 is not a valid mSQL-Link resource in /folder../filename on Line ###
- The (/folder../filename) and (###) are replaced with the line where the previous code is located.
Ok, then when I change the code to:
msql_connect() or die;
msql_selectdb("database") or die;
It works but I can never use msql_close() when I need to because it will give me the same Warning message.
I only have limited telnet connections to the server, because I don't own the server personally. I am allowed to execute all of the msql utilities.
Please help! Thanks.
Here is the code I write for the webpage:
msql_connect();
msql_selectdb("database");
When the page loads it says:
Warning: 1 is not a valid mSQL-Link resource in /folder../filename on Line ###
- The (/folder../filename) and (###) are replaced with the line where the previous code is located.
Ok, then when I change the code to:
msql_connect() or die;
msql_selectdb("database") or die;
It works but I can never use msql_close() when I need to because it will give me the same Warning message.
I only have limited telnet connections to the server, because I don't own the server personally. I am allowed to execute all of the msql utilities.
Please help! Thanks.