Title: Missing Primary Key
Last modified: August 20, 2016

---

# Missing Primary Key

 *  [zlanich](https://wordpress.org/support/users/zlanich/)
 * (@zlanich)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/missing-primary-key/)
 * Your mysql_query function throws a duplicate entry error when inserting rows 
   with non-unique IPs but unique $tangal’s. You need to also set ‘ip” as a Primary
   Key to fix this.
 * [http://wordpress.org/extend/plugins/mechanic-visitor-counter/](http://wordpress.org/extend/plugins/mechanic-visitor-counter/)

Viewing 1 replies (of 1 total)

 *  [Jack All](https://wordpress.org/support/users/jack-all/)
 * (@jack-all)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/missing-primary-key/#post-3516898)
 * That’s what I’ve been saying all the time in other posts 😉
    cheers, Jack

Viewing 1 replies (of 1 total)

The topic ‘Missing Primary Key’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mechanic-visitor-counter.svg)
 * [Mechanic Visitor Counter](https://wordpress.org/plugins/mechanic-visitor-counter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mechanic-visitor-counter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mechanic-visitor-counter/)
 * [Active Topics](https://wordpress.org/support/plugin/mechanic-visitor-counter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mechanic-visitor-counter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mechanic-visitor-counter/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jack All](https://wordpress.org/support/users/jack-all/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/missing-primary-key/#post-3516898)
 * Status: not resolved