Page 1 of 1

placing a value into a database between specific characters

Posted: Sun Feb 02, 2003 2:07 pm
by jarow
How do I create a field in my database that will allow me to insert text between the following characters #< text #>.

In other words if I enter the value "Encyclopedia Britannica" it has to appear in my database as #< Encyclopedia Britannica#>.

Thanks alot

Jim

Posted: Sun Feb 02, 2003 3:33 pm
by redcircle
just add them to the string before you insert it.

$dbinput = "Encyclopedia Britannica";


$dbinput = "#<".$dbinput."#>";