placing a value into a database between specific characters

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
jarow
Forum Commoner
Posts: 83
Joined: Tue Jan 28, 2003 2:58 am

placing a value into a database between specific characters

Post 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
User avatar
redcircle
Forum Commoner
Posts: 43
Joined: Fri Jan 31, 2003 8:47 pm
Location: michigan, usa

Post by redcircle »

just add them to the string before you insert it.

$dbinput = "Encyclopedia Britannica";


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