Im making a little search script that searches the database.
What i want to do is, where the search variable is found in the database cell, take like 10 words before it and 10 words after it to show in the results table.
For example if a table row had...
Lore Epsom dolor sit met, consectetuer dehiscing elite, seed diem mommy nib episode incident at lacerate dolor magna alga at output. At wises denim ad minim venial, quiz nostrum exercise tuition ullamcorper susceptive laborites nil at Aliquippa ex ea commode consequent. Dues tee feugifacilisi. Dues autism dolor in hindered in valuate veldt sees moles tie consequent, vela illume dolor eon feudist null facilities at Vero Eros et accusing et gusto olio diagnosis qui bandit present lutetium shrill delimit au glue dues dolor tee fugato null faceless.
... in it, and i searched for "consequent", i would want to take the first 10 words before it and 10 words after to show in the results table if that makes sense.
Thanks in advance.
1 reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users