Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners
Testimonials
Simon Greener: "A lot of work went in to designing our application database. PHP Generator allowed us to build a fully functional, professional looking, and functionally powerful web application from that database. It has freed us from worrying about low level code, enabling us to focus on the business requirements of the customer. The support provided is excellent with staff quickly producing answers to questions ranging from newbie to simple or complex. I highly recommend the product".
Anley Lafleur: "I cannot wait to start using your exciting product and I am sure it will help me achieve my objectives".

More

Add your opinion

PostgreSQL PHP Generator online Help

Prev Return to chapter overview Next

String templates

String templates are used by PostgreSQL PHP Generator on setting HREF templates, hints, etc. The strings may contain column names enclosed by %.

 

Examples:

1. Suppose a table 'team' stores various info about NBA teams. The table has 'caption' column with such data:

maverics

cavaliers

 

To create links to the team home pages:

http://www.nba.com/maverics/

http://www.nba.com/cavaliers/

 

set the HREF template

http://www.nba.com/%caption%/

 

2. Suppose there is a table 'employee' storing employee info. The table has 'first_name' and 'last_name' columns with such data:

Forest Gump

Sara Connor

 

To add such hints to their photos on the generated webpage:

Forest Gump Photo

Sara Connor Photo

 

Specify the hint template:

%first_name% %last_name% Photo

 



Prev Return to chapter overview Next