mysql_query()

This function executes the supplied SQL query. Here is its syntax:

int mysql_query(MYSQL *mysqlObject, const char *sqlstmt)

Here:

The function returns 0 if the SQL statement executes successfully; otherwise, it returns a non-zero value.