I would like to modify this MySQL query to insert the row only if it does not exist. Otherwise, I would like to update the existing row.
read this url
http://dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html
check the database emailformname and leadname are unique