PHP Classes
elePHPant
Icontem

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

Picture of Brian Read by Brian Read - 23 hours 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.

+1

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. Picture of Manuel Lemos by Manuel Lemos - 16 hours ago (2016-03-23) Reply

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

    • 2. Picture of Brian Read by Brian Read - 7 hours ago (2016-03-24) in reply to comment 1 by Manuel Lemos Comment

      yes i guess so...

    • 3. Picture of Brian Read by Brian Read - 5 hours 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. Picture of Manuel Lemos by Manuel Lemos - 5 hours 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.

0

Picture of Manuel Lemos by Manuel Lemos Reputation 12630 - 5 hours 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
: 
: