For example, when searching string_1 in MySQL table found NO RESULT, then want to add string_1 into database table. Using code below:
while (res->next())
cout<<"This word means "<<res->getString(2);
if (res==0)/[U]/I use this if statement , but don’t work![/U]
{
cout<<"Would you like to add this word to database?"<<endl;
}
What should I do?help