/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/showinterest.php

  • Committer: Gustav Hatvigsson
  • Date: 2013-04-14 09:35:50 UTC
  • mto: This revision was merged to the branch mainline in revision 61.
  • Revision ID: gustav.hartvigsson@gmail.com-20130414093550-eij0wytfiwcqxcnm
Fixed user name in the showintrest thingy

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
if($profilename != $username) {
22
22
        $relationinfo = $db->query("SELECT * from dateInterests WHERE(user1='$username' AND user2='$profilename')");
23
23
        $relationquery = $relationinfo->fetchAll();
 
24
  $newusername = $db->query("SELECT firstName, surName FROM Users WHERE loginName = '{$profilename}'");
 
25
  $newusername = $newusername->fetchAll();
 
26
  $newusername = $newusername[0]['firstName'] . " " . $newusername[0]['surName'];
24
27
        if($relationquery != array()) {
25
28
    ?>
26
29
                <p>Du har visat intresse för en lunchdejt med den här personen<p />
31
34
                $relationinfo = $db->query("SELECT * from dateInterests WHERE(user1='$profilename' AND user2='$username')");
32
35
                $relationquery = $relationinfo->fetchAll();
33
36
                if($relationquery != array()) {
34
 
                        echo $profilename . ' vill gärna äta lunch med dig också, skicka ett mail och bestäm träff!';
 
37
                        echo $newusername . ' vill gärna äta lunch med dig också, skicka ett mail och bestäm träff!';
35
38
                        include 'planlunch.php';
36
39
                        include 'showlunchsuggestions.php';
37
40
                }