Categories
Database Development

How to add “You are Friends” button instead, if user is not in the addfriends table?

How to add “You are Friends” button instead, if user is not in the addfriends table? Hi all, I have assigned a column called “friendshipstatus” as a DEFAULT Constraint =0 in “addfriends” table. Here the table :- CREATE TABLE addfriends( id INT AUTO_INCREMENT, fname varchar(255), lname varchar(255), email varchar(255), reg_date date, friendshipstatus int(11) DEFAULT 0, […]