Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8472425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:04:12+00:00 2026-06-10T17:04:12+00:00

How can I show only text around my sql search term? For example if

  • 0

How can I show only text around my sql search term?

For example if I have this text and my search term is bubbles:

Humans can see bubbles because they have a different refractive index
(IR) than the surrounding substance. For example, the IR of air is
approximately 1.0003 and the IR of water is approximately 1.333.
Snell’s Law describes how electromagnetic waves change direction at
the interface between two mediums with different IR; thus bubbles can
be identified from the accompanying refraction and internal reflection
even though both the immersed and immersing mediums are transparent.

The above explanation only holds for bubbles of one medium submerged
in another medium (e.g. bubbles of air in a soft drink); the volume of
a membrane bubble (e.g. soap bubble) will not distort light very much,
and one can only see a membrane bubble due to thin-film diffraction
and reflection.

How do I output something like this (with bold)….

Humans can see bubbles because they have a different refractive index
(IR) than … thus bubbles can be identified from the accompanying refraction and internal reflection even though both the immersed and immersing mediums are transparent.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:04:14+00:00Added an answer on June 10, 2026 at 5:04 pm

    Here is an example. You get the text from your sql query into $text, but display after replacing keywords. See http://php.net/manual/en/function.preg-replace.php

    $text = "Humans can see bubbles because..." ;
    echo preg_replace("/bubbles/", "<b>bubbles</b>", $text);
    

    Output:

    Humans can see <b>bubbles</b> because...
    

    BTW – I have no idea why S/O shows Humans in different color 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to show thumbnail images in Django admin, but I can only see
I have a text field and I dont want to show border around it
I was playing around with this code: http://jsfiddle.net/VmVAq/ As you can see, on page
How I can show only 2 posts on my websites first page? I am
I want to show up only words with minimum 4 Characters, actually I can
Is there any way to make find-name-dired to only show filenames that I can
header(Content-type: image/gif); readfile($filename); The above can only be used to show gif images. Is
if so can show simple example, ex in jquery ajax.post
Can anyone explain how to remove the orange or blue border (outline) around text/input
I have this JQuery script: $('#searchinput').keypress(function() { $('#realadstable tr').show().not(':contains(' + this.value + ')').hide(); });

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.