Title: [Plugin: Events Manager] Save Booking
Last modified: August 20, 2016

---

# [Plugin: Events Manager] Save Booking

 *  Resolved [glennbennett](https://wordpress.org/support/users/glennbennett/)
 * (@glennbennett)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-events-manager-save-booking/)
 * I’m trying to save a booking. I called save() on the EM_BOOKING object and it
   entered the data into the bookings table, but not in the tickets_bookings table
   which seem to mess things up a bit.
 * I set the status, booking and comment then save. What am I missing?
 * example
 * $EM_BOOKING->booking_status = “1”;
    $EM_BOOKING->booking_spaces = “1”; $EM_BOOKING-
   >booking_comment = “hello”; $EM_BOOKING->save();
 * [http://wordpress.org/extend/plugins/events-manager/](http://wordpress.org/extend/plugins/events-manager/)

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

 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-events-manager-save-booking/#post-2538498)
 * you need to also create a EM_Ticket_Booking object to associate the booking with
   a ticket for x spaces of that booking.
 *  Thread Starter [glennbennett](https://wordpress.org/support/users/glennbennett/)
 * (@glennbennett)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-events-manager-save-booking/#post-2538632)
 * Thanks that seemed to work

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

The topic ‘[Plugin: Events Manager] Save Booking’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [glennbennett](https://wordpress.org/support/users/glennbennett/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-events-manager-save-booking/#post-2538632)
 * Status: resolved