Location: PHPKode > projects > Decider > decider/Select_Quizes/selectkpdesi.php
<?php

 require("../common/database.php");
 if ( ! $link ) {
  die( "Couldn't connect to MySQL: ".mysql_error() );
   }


if (isset($_GET['kp']) && $_GET['kp'] != '') {
	//Add slashes to any quotes to avoid SQL problems.
	$kp = addslashes($_GET['kp']);
	//Get every page title for the site.
	$result = mysql_query("SELECT * FROM client_key_person WHERE Id='".$kp."'");
	while($ckp = mysql_fetch_array($result)) {
		//Return each page title seperated by a newline.
		//echo "<tr><td>".$ckp['Name']."</td></tr>";
		echo $ckp['Designation'];
		//echo "<option value='".$ckp['Id']."'>".$ckp['Name']."\n";
	}
}
?>
Return current item: Decider