Location: PHPKode > projects > Decider > decider/Fuzzy_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']);
	
	$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 $ckp['Designation'];
		
	}
}
?>
Return current item: Decider