theone Posted April 5, 2006 Share Posted April 5, 2006 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.Dave Quote Link to comment Share on other sites More sharing options...
theone Posted April 6, 2006 Author Share Posted April 6, 2006 Wow... no replies.Thought this would be quite simple but i guess not :( Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.