Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Insert PHP into page ?  (Read 7894 times)

0 Members and 1 Guest are viewing this topic.

chadlong41

    Topic Starter


    Starter

    Insert PHP into page ?
    « on: February 03, 2009, 12:01:34 PM »
    I have got my database driven web site I m using

    Code :
    $query = "SELECT * FROM $sTableName WHERE ID=$inPageID LIMIT 1";
        $_CONTENT = mysql_fetch_array(mysql_query($query));

    <?= $_CONTENT['PAGE_CONTENT'] ?>

    to insert the content, into the page.

    Now if I wanted to add a php command into the page (the part thats stored on the database) i m not sure what to do.

    can someone help me out here?

    Thanks !

    kpac

    • Web moderator
    • Moderator


    • Hacker

    • kpac®
    • Thanked: 184
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 7
    Re: Insert PHP into page ?
    « Reply #1 on: February 03, 2009, 01:35:10 PM »
    Sorry, can you explain your question again.

    The code you have there won't do anything at the moment.

    foggs



      Beginner

      Re: Insert PHP into page ?
      « Reply #2 on: February 05, 2009, 03:33:35 PM »
      uhhh, ya need some help yes. too much.

      beginning php book would be a good idea. try searching google for php tutorials
      Foggs