Object Problem
Hi, i wrote a C++ code, am givin a portion of it's pseudo code.
class xyz
{
public:
xyz() // constructor
{
connect to MySQL Server on localhost;
select database ABC on the server;
if successful
print success;
else
print failed;
}
};
when i create the first instance of the XYZ class, it connects to the MySQL server properly, but any other instance doesn't connect at all...
is it impossible to connect to a MySQL server simultaneously from the same program? If so, then how can i do so by any other method?
X posted to
coders_haven and
cpp
class xyz
{
public:
xyz() // constructor
{
connect to MySQL Server on localhost;
select database ABC on the server;
if successful
print success;
else
print failed;
}
};
when i create the first instance of the XYZ class, it connects to the MySQL server properly, but any other instance doesn't connect at all...
is it impossible to connect to a MySQL server simultaneously from the same program? If so, then how can i do so by any other method?
X posted to
coders_haven and
cpp