Location: PHPKode > projects > Decider > decider/Discussion/selectforum.php
<?php



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


 if (isset($_GET['client']) && $_GET['client'] != '') {
	//Add slashes to any quotes to avoid SQL problems.
	$client = addslashes($_GET['client']);
	
	$result = mysql_query("select Id,Name,Conclusions,Client_Name,Analyst_Id from analyst,analyst_feedback where Id=Analyst_Id AND Client_Name='".$client."'");
	
	echo "<tr><td></td><th>Name</th><th>Conclusions</th></tr>";
	while($feed = mysql_fetch_array($result)) {
	
		
		echo "<tr><td></td><td>".$feed['Name']."</td><td>".$feed['Conclusions']."</td></tr>";
		//echo "<tr><td>".$feed['Conclusions']."</td></tr>";
	
	}
	
 }

?>
Return current item: Decider