android - is something wrong with my query -


cursor cursor = database.query(mysqliteopenhelper.table_mots, allcolumns,                         mysqliteopenhelper.column_cat  + " = ? , " + mysqliteopenhelper.column_mot + " ?",                                                    new string[] {cat, c + "%"},                         null, null, null, null); 

knowing that: -mysqliteopenhelper.table_mots: table name -allcolumns string table columns names -mysqliteopenhelper.column_cat : column name (for condition) -mysqliteopenhelper.column_mot : column name (for condition too)

and knowing sql query want is, example:

select *  mots cat = 'jobs' , mot "s%" 


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -