string NewMovie = "ww";
string queryText ;
queryText = "INSERT INTO movie_info (movie_title ) VALUES('" + NewMovie + "')" ;
MYSQL *conn;
conn=mysql_init(NULL);
mysql_real_connect(conn,host,username,password,database,0,NULL,0);
mysql_query(conn,queryText.c_str());
mysql_close(conn);
return 0;
What i would like to know is how am i able to do a check to see if such a movie title already exist?