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

  • Committer: Daniel Johansson
  • Date: 2013-04-13 20:12:57 UTC
  • mfrom: (32 extremedating)
  • mto: This revision was merged to the branch mainline in revision 35.
  • Revision ID: maila@danieljohansson.nu-20130413201257-b5wx30v2i5djfl4m
Messed around

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        <?PHP
31
31
        if(isset($_SESSION ['userName'])){
32
32
        $username = $_SESSION ['userName'];
33
 
        include '../php/db.php';
 
33
        include 'php/db.php';
34
34
        $userinfo = $db->query("SELECT firstName from Users WHERE loginName='$username'");
35
35
        $self = $userinfo->fetchAll();
36
 
        var_dump($self);
37
36
        $firstName = $self [0]['firstName'];
38
37
        $userinfo = $db->query("SELECT surName from Users WHERE loginName='$username'");
39
38
        $self = $userinfo->fetchAll();
40
 
        var_dump($self);
41
39
        $surName = $self [0]['surName'];
42
40
        ?>
43
41
        <body id="wrapper">
65
63
        <?PHP
66
64
        } else { 
67
65
        sleep(.5);
68
 
        header("Location:../index.php");
 
66
        header("Location:index.php");
69
67
} ?>
70
68
</html>