Im trying to run a MYSQL query to check if the input value exists first.
A user fills in an input field and clicks "Add Tag"
The java script on the same page checks the MYSQL table if that tag is already there and if so returns a faded in DIV to say it already exists otherwise it INSERTS the value into the table and fades in a DIV saying "Tag Added to Database"
Please see my code below, it currently runs an external php file that does it for me using just php and the mysq; query.
Except i cant seem to work out how to run it inside my page so that it fades in the DIV.
Thank you in advance :-)