Jump to content


Photo

Search results


  • Please log in to reply
1 reply to this topic

#1 theone

theone
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 05 April 2006 - 08:23 PM

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 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.
Dave
theone

#2 theone

theone
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 06 April 2006 - 06:58 PM

Wow... no replies.
Thought this would be quite simple but i guess not :(
theone




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users