don't use an auto_increment here
Code:
CREATE TABLE friendship
( profile_id1 INTEGER NOT NULL
, profile_id2 INTEGER NOT NULL
, PRIMARY KEY ( profile_id1, profile_id2 )
, confirm TINYINT NOT NULL DEFAULT 0
);
what does "on my database I don't have an option for a foreign key" mean?
what database is this, mysql?
mysql does support foreign keys, but you have to use innodb tables