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

  • Home
  • SEARCH
  • 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 8422981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:36:28+00:00 2026-06-10T03:36:28+00:00

I have this kinda little problem using tinymce: When I’m using the insert image/photo,

  • 0

I have this kinda little problem using tinymce:
When I’m using the insert image/photo, because it asks the complete url when I upload the image/photo.

Here’s the text from mysql database when it was inserted:

<p>In mei 2012 is de Gijsbrecht aangekleed met mooie Hanging Basquets. Deze bloembakken, die bevestigd zijn aan de lichtmasten, zijn een fleurige aankleding van de straat!&nbsp;</p>
<p>&nbsp;</p>
<p><img src="upload/gijs.jpg" alt="" width="400" height="266" /></p>

Now on the image <img src=''> you can only see the upload/gijs.jpg, but what I did is insert it with complete url.

How can I implode it when inserting to the database?

My codes for insert:

if ( isset( $_POST['Save'] ) ) {
    $email = $_POST['email'];
    $t_u_c = $_POST['title_up_content'];
    $u_c = $_POST['upcontent'];
    $t_c1 = $_POST['title_col1'];
    $c1 = $_POST['column1'];
    $t_c2 = $_POST['title_col2'];
    $c2 = $_POST['column2'];

    $sql_insert_home = mysql_query( "INSERT INTO jon_homepage VALUE('', '$email', '$t_u_c', '$u_c', '$t_c1', '$c1', '$t_c2', '$c2', NOW() )" ) or die ( mysql_error() );
    echo "<div id='successful'>You've successfully save data.</div>";
}

$c1 = $_POST['column1']; this is the text from the image
My website is http://www.degijsbrecht.nl/gijsbrecht/

Thanks everyone

  • 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-10T03:36:30+00:00Added an answer on June 10, 2026 at 3:36 am

    You need to force TinyMCE to use absolute urls instead of relative urls, and to do this you need to add the next 3 lines in your tinyMCE.init({}); like this:

        tinyMCE.init({
            relative_urls : false,
            remove_script_host : false,
            convert_urls : false
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a webpage with a form, which looks kinda like this: @using (Html.BeginForm(MyAction,
I have this kinda template text : Hello {#Name#}, Thanks for coming blah on
I have a little problem with a class I am currently writing a save
Here's my problem, I have one sqlite memory database by using QSql . I
I have a little DB challenge for you. Hopefully you can help. The Problem:
Hello I have a little problem with assigning property values from one lists items
I have a button image I'm using as a background image for some links.
Background I've been struggling with this stupid little problem of trying to cancel link
I have a simple, real life problem I want to solve using an OO
I have this kind of question. In my form, i got this as a

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.