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

  • Committer: Daniel Johansson
  • Date: 2013-04-14 00:53:15 UTC
  • Revision ID: maila@danieljohansson.nu-20130414005315-oh8ermfvltu1sjow
Fixed list, bugfixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
                        <a href="index.php">
46
46
                        <img src="img/logo.png"/>
47
47
                        </a>
48
 
                                <img src="img/logo.png"/>
49
48
                        </div>
50
49
                                <form action="./logout.php" method="POST">
51
50
                                        <table id="logout">
83
82
                                                $relation2string = $relation2info->fetchAll();
84
83
                                                foreach ($relation2string as $relation2query) {;
85
84
                                                        if($relation2query[0] == $username){
 
85
                                                        $userinfo = $db->query("SELECT firstName from Users WHERE loginName='$relationquery[0]'");
 
86
                                                        $self = $userinfo->fetchAll();
 
87
                                                        $firstName = $self [0]['firstName'];
 
88
                                                        $userinfo = $db->query("SELECT surName from Users WHERE loginName='$relationquery[0]'");
 
89
                                                        $self = $userinfo->fetchAll();
 
90
                                                        $surName = $self [0]['surName'];
86
91
                                                                echo '<li><a href="./profile.php?uid=' . $relationquery[0] . '">' . $firstName . ' ' . $surName . '</a></li>';
87
92
                                                        }
88
93
                                                }