i fetching sentences database show on webpage taking first letter of sentences stored, provided user input.
i need fetch stored data database 'search' , show on webpage. database has 2 columns:
1 col- index (consists of number) 2 col- answers (consists of sentence) now problem "how fetch whole sentence checking first alphabet"
example: suppose col/answers/ consist of 3 sentences
"is , did chef is" "nor, whether, that, the" "hurting, do" .....so on..... now search "n" on webpage , after submitting form database send sentences stored starting alphabet "n". same process other letters.
and can checking 6 letters @ same time. (by different input field , of them fetch data after submitting)
like in
1 input: "f" letter--- 2 input: "e" letter-- 3 input: "j" letter-- 4 input: "r" letter-- 5 input: "q" letter-- 6 input: "h" letter-- now submit form show sentences starting "f,e,j,r,q,h" respectively.
use like clause of sql match pattern. inputs separately or in loop, whatever suits code.
Comments
Post a Comment