Which includes majorly three steps.
1. Database connection
2. Form to search
3. Fetching related data from database table.
Before you go to these you need to setup local server and database.
If you don't know how to do, you can check out here Setting up the server.
Once you set up the server run following queries.
To create a table.
CREATE TABLE `user` (
`UserID` int(12) NOT NULL,
`FirstName` varchar(48) NOT NULL,
`LastName` varchar(48) NOT NULL,
`Email` varchar(128) NOT NULL,
`Password` varchar(20) NOT NULL,
`City` varchar(48) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;