/extremedating/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/extremedating/trunk

« back to all changes in this revision

Viewing changes to php/feed.php

  • Committer: Daniel Johansson
  • Date: 2013-04-13 09:30:20 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: maila@danieljohansson.nu-20130413093020-s4t7ci899tigorea
Added csses, index.php and image folder

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?PHP
2
 
        $userinfo = $db->query("SELECT city from Users WHERE loginName='$username'");
3
 
        $self = $userinfo->fetchAll();
4
 
        $city = $self [0];
5
 
        $finderinfo = $db->query("SELECT loginName from Users WHERE city='$city[0]' AND loginName != '$username'");
6
 
        $userlist = $finderinfo->fetchAll();
7
 
        foreach ($userlist as $user) {
8
 
                $userinfo = $db->query("SELECT firstName from Users WHERE loginName='$user[0]'");
9
 
                $self = $userinfo->fetchAll();
10
 
                $firstName = $self[0];
11
 
                $userinfo = $db->query("SELECT surName from Users WHERE loginName='$user[0]'");
12
 
                $self = $userinfo->fetchAll();
13
 
                $surName = $self[0];
14
 
                echo '<div class=feedbox >';
15
 
                echo '<a href="./profile.php?uid=' . $user[0] . '">' . $firstName[0] . ' ' . $surName[0] . '</a>' . ' bor också i ' . $city[0];
16
 
                echo '</div>';
17
 
        }
18
 
?>
 
 
b'\\ No newline at end of file'