Support

Home Forums Event Espresso Premium Inserting venue information using $wpdb->insert

Inserting venue information using $wpdb->insert

Posted: September 23, 2015 at 9:10 am

Viewing 1 reply thread


Zoe E

September 23, 2015 at 9:10 am

Hi all, we’re doing some CRM integration for a client and I am having trouble inserting the venue information. My query is below, my variables are populated correctly as they print out fine if I echo them above this code. However the code just inserts blanks in to the database (except for the Venue ID which inserts fine!).

			$wpdb->insert( 
				$wpdb->prefix.'esp_venue_meta', 
				array( 
					'VNU_ID' => $venue_id,
					'VNU_address' => $venueAddress1, 
					'VNU_address2' => $venueAddress2, $venueAddress3,
					'VNU_city' => $venueCounty,
					'CNT_ISO' => 'GB',
					'VNU_zip' => $venuePostcode,
					'VNU_phone' => $venuePhone,
				),  
				array('%s','%s','%s','%s','%s','%s','%s') 
			);

Any points in the right direction would be very appreciated!!!

Thanks!


Lorenzo Orlando Caum

  • Support Staff

September 23, 2015 at 9:22 am

Hi Zoe, please post your question to our GitHub project for Event Espresso and our developers will be able to share feedback:

https://github.com/eventespresso/event-espresso-core/issues


Lorenzo

Viewing 1 reply thread

The support post ‘Inserting venue information using $wpdb->insert’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso