Jump to content


This topic is now archived and is closed to further replies.


Search results

Recommended Posts

Hi guys.

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 [b]consequent[/b]. 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.

Share this post

Link to post
Share on other sites
Wow... no replies.
Thought this would be quite simple but i guess not :(

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.