Code:
<html>
<body>
<?php
$dbhost='localhost';
$dbuser='root';
$dbpass='';
$db='country1';
$connection=mysql_connect($dbhost,$dbuser,$dbpass) or die("unable to connect");
mysql_select_db($db) or die("unable to select");
session_start();
$_SESSION['userid']=$_COOKIE['userid'];
$q=$_SESSION['userid'];
$query="select