-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviewprofile.php
43 lines (33 loc) · 1.23 KB
/
viewprofile.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
$pageTitle = "Planet Money Race To Refinance";
require('header.php');
$firstname = $lastname = $city = $state = $purchaseprice = $purchasedate =
$mortgagebalance = $secondmortgage = $housephoto = $twittername;
print $pageURL;
if ($_GET['user'] != '')
{
GetViewProfileInfo($_GET['user']);
include_once('template_profile.php');
}
else
include_once('template_profilelist.php');
?>
<?php
require("footer.php");
?>
<?php
function GetViewProfileInfo($username)
{
$profileRow = GetProfileRow($username);
$GLOBALS['firstname'] = $profileRow['firstname'];
$GLOBALS['lastname'] = $profileRow['lastname'];
$GLOBALS['city'] = $profileRow['city'];
$GLOBALS['state'] = $profileRow['state'];
$GLOBALS['purchaseprice'] = $profileRow['purchaseprice'];
$GLOBALS['purchasedate'] = date("m/d/Y", $profileRow['purchasedate']);
$GLOBALS['mortgagebalance'] = $profileRow['mortgagebalance'];
$GLOBALS['secondmortgage'] = $profileRow['secondmortgage'];
$GLOBALS['housephoto'] = $profileRow['housephoto'];
$GLOBALS['twittername'] = $profileRow['twittername'];
}
?>