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 Rhinorhino 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
Joined
Jun 29, 2000
Messages
203
Location
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?

--
 
SOLVED - stupid me, the browser just did not show the string, view source does. must be too late.

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top