thedigicraft / Atom.CMS

Atom.CMS
56 stars 52 forks source link

Further processing of teaxtarea text #227

Closed mtaziz123456789 closed 7 years ago

mtaziz123456789 commented 7 years ago

I want to ask that can I use PHP tags inside body data? screenshot 1 I want to use some PHP functions (such as echo) or some mysql queries (such as select) instead of plane text in the above screenshot within square brackets . Please answer (keeping in view that this plane text as saved in a column of a mysql table). Is it possible? screenshot 2 I want to ask that in that body textarea of a table's column is it possible to use php and mysql queries

creptor commented 7 years ago

You need to handle the data from the database differently, please wait, I'll post an example when I can...

creptor commented 7 years ago

I think the thing you're looking for is called ´eval()´, but you should really understand the risk of using it, please search the web for more information.

You can read more about ´eval()´ in these pages: http://stackoverflow.com/a/10866400 http://php.net/manual/en/function.eval.php

Keep this in mind, It's a quote:

If eval() is the answer, you're almost certainly asking the wrong question. Rasmus Lerdorf, BDFL of PHP

PD: Sorry for the delay, I needed to study for a test...

mtaziz123456789 commented 7 years ago

Thanks for help let me try this