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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:48:26+00:00 2026-05-13T00:48:26+00:00

Anybody have any idea how I might go about doing something like this. I’ve

  • 0

Anybody have any idea how I might go about doing something like this.

I’ve got a textarea setup to allow users to edit page content. the content is then stored in a database and is retrieved on the frontend by php within an html template. something like:

<html>
yada yada...
<?php
echo get_page_contents_by_id($_GET['id']);
?>
yada yada...
</html>

its all run in a .php file, in case anyone wanted to call that out.

What I’m wondering is, because I’m getting the content from the database via php, is there any way that I can retrieve php code within that content and still run it without doing any sort of file writing.

  • 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-13T00:48:26+00:00Added an answer on May 13, 2026 at 12:48 am

    You can use the PHP eval() method to execute the PHP code returned from the database – just as if it was actually written in your PHP file directly.

    e.g.

    <?php
    eval("echo('hello world');");
    ?>
    

    Prints:

    hello world

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

Sidebar

Related Questions

does anybody have any idea what's does this mean: onLoad=MyOnLoad? thanks
Anybody have any ideas? The situation is like this: I have a primary rails
Anybody have any idea why this query isn't working? $result = mysql_query(SELECT * FROM
Does anybody have any idea why I am getting this error when I try
Does anybody have any idea why this doesn't work? $(document).ready(function() { var loading; var
Does anybody have any idea how I would make this shorter and less redundant:
Does anybody have any idea why on single posts there are no template dropdowns
Does anybody have any idea why Selenium RC server takes a long time to
Any body have idea how to put controls dynamically in asp.net 3.5 ? if
does anybody have any experience writing up a offline data storage & access app

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.