I have PHP web pages with page ids such as following example:
www.mysite.com/page.php?id=150
www.mysite.com/page.php?id=151
www.mysite.com/page.php?id=152
and so on...
The mysql table is having two columns with field names and values, for example:
id
= 150
email
= test@mysite.com
I am able to retrieve page id
with the help of: echo $_GET['id'];
How do I fetch the email based on the GET
parameter? For example for www.mysite.com/page.php?id=150
I would like to echo the email test@mysite.com
on page.php
.