Computer Hope

Internet & Networking => Web design => Topic started by: chadlong41 on February 03, 2009, 12:01:34 PM

Title: Insert PHP into page ?
Post by: chadlong41 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 !
Title: Re: Insert PHP into page ?
Post by: kpac 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.
Title: Re: Insert PHP into page ?
Post by: foggs 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