Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (33 sloc) 1.16 KB
<HTML>
<HEAD>
<TITLE>New Document</TITLE>
<style type="text/css">
<!--
div {text-align:right;}
//-->
</style>
</HEAD>
<BODY>
<?php // Connects to your Database
mysql_connect("localhost", "root", "") or die(mysql_error());
mysql_select_db("openspace") or die(mysql_error());
$usn=$_POST['l_id'];
$data = mysql_query("SELECT * FROM likes_interests WHERE l_id='$usn'") or die(mysql_error());
Print "<table border=1 cellpadding=3 cellspacing=5>";
Print "<caption>Details</caption>";
while($info = mysql_fetch_array( $data ))
{ Print "<tr style=background-color:silver>";
Print "<td colspan=8>Appilcation Number: ".$info['application_no'] . "</td> ";
Print "<td>Activities: ".$info['activities'] . " </td>";
Print "<td>Interests:".$info['interests'] . "</td> ";
Print "<td>Music:".$info['music'] . " </td>";
Print "<td>Movies:".$info['movies'] . "</td>";
Print "<td>Television:".$info['television'] . " </td>";
Print "<td>likes ID:".$info['l_id'] . " </td>";
Print "<td>Books:".$info['books'] . " </td>";
Print "<td>Other Details:".$info['other_details_likes'] . " </td>
</tr>"; }
Print "</table>";
?>
</BODY>
</HTML>