Formatting
This commit is contained in:
@@ -10,12 +10,6 @@
|
|||||||
<body>
|
<body>
|
||||||
<!--#include virtual="header.html" -->
|
<!--#include virtual="header.html" -->
|
||||||
<!--#include virtual="topNavBar.html" -->
|
<!--#include virtual="topNavBar.html" -->
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
background-color: #3B5998;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<h2><font color="white">Search by</h2>
|
<h2><font color="white">Search by</h2>
|
||||||
|
|
||||||
<form method="post" action="usernameSearch.php">
|
<form method="post" action="usernameSearch.php">
|
||||||
@@ -30,8 +24,6 @@ Last Name: <input type="text" name="lname"><br>
|
|||||||
<input type="submit" class="button">
|
<input type="submit" class="button">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
echo $name;
|
echo $name;
|
||||||
echo "<br>"
|
echo "<br>"
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
require 'common.php';
|
require 'common.php';
|
||||||
require 'loginRequired.php';
|
require 'loginRequired.php';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
@@ -10,12 +11,6 @@
|
|||||||
<body>
|
<body>
|
||||||
<!--#include virtual="header.html" -->
|
<!--#include virtual="header.html" -->
|
||||||
<!--#include virtual="topNavBar.html" -->
|
<!--#include virtual="topNavBar.html" -->
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
background-color: #3B5998;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
echo "<br>";
|
echo "<br>";
|
||||||
$query = "Select * from contacts where username = '".$_POST["username"]."'";
|
$query = "Select * from contacts where username = '".$_POST["username"]."'";
|
||||||
@@ -23,7 +18,6 @@ $query = "Select * from contacts where username = '".$_POST["username"]."'";
|
|||||||
foreach($db_connection->query($query) as $row){
|
foreach($db_connection->query($query) as $row){
|
||||||
print $row['username']." First Name:".$row['fname']." Last Name:".$row['lname']."\n";
|
print $row['username']." First Name:".$row['fname']." Last Name:".$row['lname']."\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user