I am working on a blogging site but problem which I am facing is that, I want to allow user to create a blog if and only if his/her combination of email address, Blog Name and Blog Title is different from any other rows in the table. For example let us consider this table:-
Email BlogName BlogTitle
[email protected] Coder's world What is coding?
[email protected] Sql world What is sql?
Now if a user tries to enter a values('[email protected]','Coder's Worlds' ,'What is coding?') in the table again then he/she will not be allowed to do so. But if the user tries to insert different combination of email, BlogName and BlogTitle then he/she will be allowed to do so.
As I am pretty new to Mysql, I don't know how to do this, so please help me to do this.
My Table structure :-
