I have some html templates saved in MySQL database and I need to mix the retrieved html template with some variables, But when I do that I get the variable name printed instead of it's value. How can I solve this issue ??
2
-
Not a good approach to write php code in db and try to execute that, try string replacements.. w3schools.com/php/func_regex_preg_replace.aspAmmar Aslam– Ammar Aslam2021-11-18 13:07:42 +00:00Commented Nov 18, 2021 at 13:07
-
Please show a minimal reproducible exampleDylan Reimerink– Dylan Reimerink2021-11-21 19:06:25 +00:00Commented Nov 21, 2021 at 19:06
Add a comment
|