thara
thara

Reputation: 39

Creating a Static HTML page from a MySQL Database and Using PHP

I have created a website to display some teacher's profile. Every profile page generate with more dynamic information from database. In my home page I have listed every teachers' profile from database with a link to his complete profile. Eg. index.php?teacherId=21. Now I need to convert from my dynamic pages to basic static HTML pages to get some benefits for my website. Number one is get search engine higher rank to my profile pages. further I need to rename html page with teacher's name. As well as my website has a searching option. It help for users to search teacher profile according to their subjects, grades, town, city, etc. So Can I know, it is possible to create such a searching system to my website after I made my php page to basic HTML pages...

any ideas are greatly appreciated.

Upvotes: 0

Views: 3529

Answers (2)

Ja͢ck
Ja͢ck

Reputation: 173662

What you're looking for is friendly URL: SEO Friendly URL

You make URL's like:

/teachers/21/name-of-teacher

Which then internally maps to:

/profile/teachers/index.php?id=21

The ID at the beginning is what you use to load from MySQL; just like how SO does it really :)

Upvotes: 2

Jon P
Jon P

Reputation: 19797

Investigate MVC frameworks for PHP. These will give you your search engine friendly urls.

Two that spring to mind are :

  1. Zend
  2. Cake

There are many more, like this list for starters!

Upvotes: 0

Related Questions