30 lines
642 B
PHP
30 lines
642 B
PHP
<?php
|
|
require 'common.php';
|
|
require 'loginRequired.php';
|
|
?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html>
|
|
<body>
|
|
<!--#include virtual="header.html" -->
|
|
<!--#include virtual="topNavBar.html" -->
|
|
<style>
|
|
body {
|
|
background-color: #3B5998;
|
|
}
|
|
</style>
|
|
|
|
<?php
|
|
$username = $_POST["username"];
|
|
print($username);
|
|
echo "<br>";
|
|
$query = "Select * from contacts where username = $username";
|
|
|
|
foreach($db_connection->query($query) as $row){
|
|
print $row['username']." First Name:".$row['fname']." Last Name:".$row['lname']."\n";
|
|
}
|
|
|
|
?>
|
|
|
|
</body>
|
|
</html>
|