Meta Symbol replacement in text: I need to take a piece of text and replace certain symbols in it

Recommend this page to a friend!
  All requests RSS feed  >  Meta Symbol replacement in text  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Meta Symbol replacement in text

Edit

by Brian Read - 4 years ago (2016-03-23)

I need to take a piece of text and replace certain symbols in it

This request is clear and relevant.
This request is not clear or is not relevant.

+2

I want to be able to process a piece of html and substitute meta symbols in the text by the contents of the corresponding field in a database, generating an html page which includes the contents of the current MySQL record. I need to do this for multiple records.

  • 1 Clarification request
  • 1. by Manuel Lemos - 4 years ago (2016-03-23) Reply

    Do you need a sort of template engine that replaces marks with data from a database?

    • 2. by Brian Read - 4 years ago (2016-03-24) in reply to comment 1 by Manuel Lemos Comment

      yes i guess so...

    • 3. by Brian Read - 4 years ago (2016-03-24) in reply to comment 2 by Brian Read Comment

      ok, I used "template engine" as a search term and found a number of options. Thanks for the help.

    • 4. by Manuel Lemos - 4 years ago (2016-03-24) in reply to comment 3 by Brian Read Comment

      Sure, no problem. There are many template engine classes but not many that integrate database results directly. Most take arrays and iterate over sections.

      If you want to show a data grid for displaying or editing database records, there are more adequate packages for that purpose.

Ask clarification

1 Recommendation

lezaz: Template engine that compiles tags into PHP code

This recommendation solves the problem.
This recommendation does not solve the problem.

+2

by Manuel Lemos Reputation 18655 - 4 years ago (2016-03-24) Comment

In general there are template classes that can iterate over arrays with data taken from database query results.

This class is a template engine that can do that, as well extract the SQL query results with special tags.


Recommend package
: 
: 
For more information send a message to info at phpclasses dot org.