Jump to content

Integrating PHP and HTML and hoping to display both outputs


Recommended Posts

I'm not sure if this is the right place... but I have a question.  I'm using phpbb2, but am trying to make that just a section of the site.  I'm creating a front page using PHPEdit and in the middle of index.html, i have some PHP code.  Kinda like this:

    some variable
    some sql queries
    echo $row['post_text'];

This does not seem to be outputting anything, but I get no errors.  is this the wrong way to go about putting database data on to the browser?
Link to comment
Share on other sites

I don't get it. index.html is a page you made? Or a page you found and edit as a part of phpbb?

First of all, it ends as .html, so it won't run through PHP in most installations. Secondly, phpbb uses a template system. If you try to echo anything, you'll probably find it at the very top or bottom of the page.

You need to better explain what you're trying to do.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.