Find file
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (34 sloc) 1.21 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['c_id'];
$data = mysql_query("SELECT * FROM contact_info WHERE c_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>Email ID: ".$info['email_id'] . " </td>";
Print "<td>Mobile No:".$info['mobile_no'] . "</td> ";
Print "<td>Other Phone:".$info['other_phone'] . " </td>";
Print "<td>Contact ID:".$info['c_id'] . "</td>";
Print "<td>Address:".$info['address'] . " </td>";
Print "<td>City:".$info['city'] . " </td>";
Print "<td>Zip:".$info['zip'] . " </td>";
Print "<td>NeighbourHood:".$info['neighbourhood'] . " </td>";
Print "<td>Website:".$info['website'] . " </td>
</tr>"; }
Print "</table>";
?>
</BODY>
</HTML>