Title: Does Record Exist
Last modified: February 24, 2019

---

# Does Record Exist

 *  [supernova42](https://wordpress.org/support/users/supernova42/)
 * (@supernova42)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/does-record-exist/)
 * Hi Roland
 * How can I check if a record exists in the PDB using php
 * Thanks

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

 *  Thread Starter [supernova42](https://wordpress.org/support/users/supernova42/)
 * (@supernova42)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/does-record-exist/#post-11246452)
 * at the moment I use
 * if (empty($name)) {do this}
 * but I wondered if their was another command
 * Thanks
 *  Plugin Author [xnau webdesign](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/does-record-exist/#post-11246649)
 * That will work…the plugin function i would use is:
 * `Participants_Db::get_participant( $record_id );`
 * it will return “false” if the record is not found.

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

The topic ‘Does Record Exist’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [xnau webdesign](https://wordpress.org/support/users/xnau/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/does-record-exist/#post-11246649)
 * Status: not resolved