I have a variety of text strings stored in a MySQL database which need to be combined with variables in php....
The variable NAMES are stored as text within the data which needs to be replaced with the variable VALUES
example-
contents of SQL varchar data field: "some text $var1 more text $var2 ..."
needs to become a string where the literal $var1, etc is replaced with the actual variable...
I tried a variety of methods to concatenate the $var within the stored text,i.e. "some text '.$var1.' more text '.$var2"; but, to no avail...
Ideas?
TIA,
-Allen M.
The variable NAMES are stored as text within the data which needs to be replaced with the variable VALUES
example-
contents of SQL varchar data field: "some text $var1 more text $var2 ..."
needs to become a string where the literal $var1, etc is replaced with the actual variable...
I tried a variety of methods to concatenate the $var within the stored text,i.e. "some text '.$var1.' more text '.$var2"; but, to no avail...
Ideas?
TIA,
-Allen M.