Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (29 sloc) 940 Bytes
<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['my_id'];
$data = mysql_query("SELECT * FROM me WHERE my_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>my_id: ".$info['my_id'] . " </td>";
Print "<td>First Name:".$info['first_name'] . "</td> ";
Print "<td>Last Name:".$info['last_name'] . " </td>";
Print "<td>initials:".$info['initials'] . "</td>
</tr>"; }
Print "</table>";
?>
</BODY>
</HTML>