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

  • Committer: Gustav Hatvigsson
  • Date: 2013-04-13 20:11:00 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20130413201100-dhc1d0vtv74cz0nt
blarg

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
    PRIMARY KEY(loginName, foodType)
100
100
    );
101
101
  "); 
102
 
  
103
 
        $db->exec("
104
 
                CREATE TABLE IF NOT EXISTS dateInterests(
105
 
                user1 varchar(64),
106
 
                user2 varchar(64),
107
 
                FOREIGN KEY(user1) REFERENCES USERS(loginName),
108
 
                FOREIGN KEY(user2) REFERENCES USERS(loginName),
109
 
                PRIMARY KEY(user1, user2)
110
 
                );
111
 
        ");
112
102
} catch (PDOException $err) {
113
103
  echo $err;
114
104
}