(( I forgot to show my executeSQLcommand method
bool CDBConnect::executeSQLcommand( std::string query )
{
if ( query[query.length()] != ';' )
{
query = query + ";";
}
if ( dbdata == NULL )
{
std::cout << "Not connected to server." << std::endl;
return false;
}
if ( ! dbdata->ExecCommandOk( query.c_str() ) )
{
std::cerr << "SQL command failed!" << std::endl;
std::cerr << "Error was: " << dbdata->ErrorMessage() <<
std::endl;
std::cout << "SQL command failed!" << std::endl;
std::cout << "Error was: " << dbdata->ErrorMessage() <<
std::endl;
return false;
}
return true;
}
=====
Taz Master
mailto:tazmaster@rocketmail.com
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com