Location: PHPKode > projects > Decider > decider/Discussion/insertcomment.php
<?php
	session_start();
	
?>

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

	//if(isset($_GET['ADD'])){
	
	

		//$q_string="INSERT INTO analyst_feedback (Feed_Id, Client_Name, Analyst_Id, Conclusions) VALUES ('','$_GET['client']','1','$_POST['forum_feild']')";
$q_string = "INSERT INTO analyst_feedback VALUES ('','".$_GET['client']."','".$_SESSION['userid']."','".$_GET['forum_field']."')";
		
		if (!mysql_query($q_string,$link)){
			die('Error: ' . mysql_error());
	  	}
		$client=$_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>";
	
	}
		//echo $_POST['client'].' '.$_SESSION['userid'].' '.$_POST['forum_feild'].' '.'ABCD';

		//echo '<div align="center"> Done </div>';
	//}
	
		
	mysql_close($link);
	

?>
Return current item: Decider