Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

store php in database

Status
Not open for further replies.

edelwater

Programmer
Jun 29, 2000
203
0
0
EU
Im trying to store a piece of PHP in a WordPress table (post-content) but somehow I cant get the php tags in because it is interpreted as php.

Code:
$description = "<" . "?" . "php $" . 
		"objectname = \"$name\"; include_once \"". R_ROOT . "ect.php\"; ?" . ">";

$sql="UPDATE `".TTABLE."` SET `post_content`='" . $description. "' WHERE `id` = '$pageid';";

echo $sql . "<br />";

so the sql string part of the description is empty, anyone can help here?

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top