/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:05:54 UTC
  • Revision ID: maila@danieljohansson.nu-20130414000554-recb8xnggaoqjx16
Fixed followingsystem

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
                                </form>
57
57
                        </div>
58
58
                        <div id="profileimg">
59
 
                                <img src="./get_image.php?userName=<?PHP echo $username;?>"/>
 
59
                                <img class="profilepic" src="./get_image.php?userName=<?PHP echo $username;?>"/>
60
60
                                <a href="profile.php?uid=<?php echo $username; ?>" class="profilename"><?php echo $firstName . " " . $surName;?></a>
61
61
                                <p class="smallheader">Personer jag vill träffa:</p>
62
62
                                <?PHP
73
73
                                                echo '<li><a href="./profile.php?uid=' . $relationquery[0] . '">' . $firstName . ' ' . $surName . '</a></li>';
74
74
                                        }
75
75
                                        echo '</UL>';
76
 
 
 
76
                                        echo '<p class="smallheader">Personer som vill träffa mig:</p>';
 
77
                                        echo '<UL>';
 
78
                                        
 
79
                                        $relationinfo = $db->query("SELECT user2 from dateInterests WHERE(user1='$username')");
 
80
                                        $relationstring = $relationinfo->fetchAll();
 
81
                                        foreach ($relationstring as $relationquery) {
 
82
                                                $relation2info = $db->query("SELECT user2 from dateInterests WHERE(user1='$relationquery[0]')");
 
83
                                                $relation2string = $relation2info->fetchAll();
 
84
                                                foreach ($relation2string as $relation2query) {;
 
85
                                                        if($relation2query[0] == $username){
 
86
                                                                echo '<li><a href="./profile.php?uid=' . $relationquery[0] . '">' . $firstName . ' ' . $surName . '</a></li>';
 
87
                                                        }
 
88
                                                }
 
89
                                        }
 
90
                                        echo '</UL>';
77
91
                                ?>
78
 
                                <p class="smallheader">Personer som vill träffa mig:</p>
79
 
                                <p class="profilelink">Jane Doe</p>
80
92
                        </div>
81
93
                        <div id="wallflow">
82
94
                        </div>