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 7663025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:57:04+00:00 2026-05-31T13:57:04+00:00

how can i mark place in the text where i have to put image.

  • 0

how can i mark place in the text where i have to put image.

i am having a paragraph like whose contents comes from database

this is dummy text {show image1 here}. this is another dummy text {show image2 here}

and my images are stored in another table

is it possible that i put a map in text in the database so that i know where to display image

sorry for my bad English
Thanks for your precious time

  • 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-05-31T13:57:06+00:00Added an answer on May 31, 2026 at 1:57 pm

    I use regular expressions to parse data like

    <!--image--534--float:left-->
    

    Extract ID from it, get actual image size and status.. and then replace with relevant HTML tag with applied styles. And its not only in decoding, but in encoding images from wysiwyg editor as well.

    So simplified pseudocode in php roughly would be like…

    preg_match_all('/\{[0-9]\}/i', $article, $matches);
    foreach($matches as $imageTag){
    str_replace('{'.$imageTag[0].'}','<img src="'.$imageTag[0].'.jpg" alt="" />');
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I mark a portion of a tkinter text widget as readonly? That
How can I put a question mark above a less-than-or-equal-to symbol( \leq ) in
From 2.13.2/3 The double quote and the question mark ? , can be represented
In Hotspot, when System.gc() is invoked, I can have this use the Concurrent-Mark-Sweep collector
There have been a few questions like this around the place but none have
How do I place a water mark (company logo, image) on an picture I've
I have a question I would like to mark a point on a map
I'm at a place in a file and can mark the location. I search
i am currently writing a webapp in rails where users can mark items as
How can i mark menuitem in Application Bar. I want to get, for example,

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.