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

Subscribe to our news:
Partners
Testimonials
Rickey Steinke: "Folks, I wanted to drop a line and give you a fanatic thank you. I have a project due for my computer application course and without PHP Generator I never would have gotten it done with the professional results your product produced. My sincerest gratitude to each and every team member who brought this program to light".
Tony Broadbent: "Such a great product! I have been struggling to hand craft pages which, with your PHP Generator, I created beautifully within 5 minutes of downloading it".

More

Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next

String templates

String templates are used by PHP Generator for MySQL 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