Ok,
I will rephrase what I want it to do I'm probably not explaining it properly.
I want the IF statement, I got it to check if the fields are filled in. If they are then I want it to insert it into the database, if not I want it to end the query so it doesn't insert into the database and display a message in the page.
Hope this is a better explanation?!
Thanks for your help!