Forums

[closed] How to insert HTML code from a MySQL database into a text widget (6 posts)

  1. hroen1
    Member
    Posted 7 months ago #

    Hello dear all,
    My case is as follows:

    I have a "Text" widget containing HTML code.

    I also run a MySQL server, and get above mentioned HTML code from a database by just running a query (the code is stored as text in a database cell).

    What I want to do is to set up my HTML widget so as it would get that code (or at least some part of it) directly from MySQL database.
    So when I change the code in the database, it would change automatically in the widget.

    Thank you for reading,
    I would appreciate any suggestions or hints from you.

  2. hroen1
    Member
    Posted 7 months ago #

    What I tried to do is to embed a PHP code into HTML.

    But it seems like WordPress interprets it as HTML, not as PHP.

    Is there a way to embed PHP?
    Or is there any other way out?

  3. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

    You would effectively need to build a custom widget/plugin.

  4. hroen1
    Member
    Posted 7 months ago #

    Thank you for replying, esmi!
    Wow your suggestion sounds challenging :)

    Is there a tutorial or something to get started? )

  5. hroen1
    Member
    Posted 7 months ago #

    Ok are there heroes who could do it for a fee?

  6. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

    Try http://jobs.wordpress.net/
    Topic now closed as per the Forum Rules

Topic Closed

This topic has been closed to new replies.

About this Topic