Title: insert unique refrence
Last modified: August 30, 2016

---

# insert unique refrence

 *  Resolved [Yuri Boyka](https://wordpress.org/support/users/boyka_kamal/)
 * (@boyka_kamal)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/insert-unique-refrence/)
 * hello guys,
    I want to add unique refrence. before insertion i want that code
   will search the database that whether this entry exist or not in the earlier 
   code. If it doesn’t exist that it will add that code in the database. Else it
   will Be showing an error message.
 * Thanks
 * [https://wordpress.org/plugins/simple-custom-website-data/](https://wordpress.org/plugins/simple-custom-website-data/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [DannyWeeks](https://wordpress.org/support/users/dannyweeks/)
 * (@dannyweeks)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/insert-unique-refrence/#post-6693676)
 * Hi,
 * I have updated the plugin to give this functionality as I do think the user should
   explicitly say they want to edit an existing record.
 * After updating to version 2.2 it should work the way you wanted to.
 * Thanks
    Danny
 *  Thread Starter [Yuri Boyka](https://wordpress.org/support/users/boyka_kamal/)
 * (@boyka_kamal)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/insert-unique-refrence/#post-6693710)
 * hello Danny,
    I am really thankful to you for your response. Its working now 
   and very helpful to me. if you dont mind i need your help for another functionality,
   i want to edit refrence as well as data from WP dashboard.
 * again Thankyou so much 🙂
 *  Thread Starter [Yuri Boyka](https://wordpress.org/support/users/boyka_kamal/)
 * (@boyka_kamal)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/insert-unique-refrence/#post-6693720)
 * sorry bro, its not working. dont know why.
    I am just working on wp dashboard
   and your functionality stop automatically. Help me
 *  Thread Starter [Yuri Boyka](https://wordpress.org/support/users/boyka_kamal/)
 * (@boyka_kamal)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/insert-unique-refrence/#post-6693772)
 * I want to edit both refrence as well as data from WP admin.Please help and i 
   am really appriciate your work.
 * Thanks bro

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘insert unique refrence’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-custom-website-data_2d3e50.
   svg)
 * [Custom Website Data](https://wordpress.org/plugins/simple-custom-website-data/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-custom-website-data/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-custom-website-data/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-custom-website-data/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-custom-website-data/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-custom-website-data/reviews/)

## Tags

 * [error message](https://wordpress.org/support/topic-tag/error-message/)

 * 4 replies
 * 2 participants
 * Last reply from: [Yuri Boyka](https://wordpress.org/support/users/boyka_kamal/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/insert-unique-refrence/#post-6693772)
 * Status: resolved