summaryrefslogtreecommitdiffstats
path: root/includes/concert.php
diff options
context:
space:
mode:
authorAndreaChirulescu <andrea.chirulescu@gmail.com>2021-04-19 22:50:12 +0200
committerAndreaChirulescu <andrea.chirulescu@gmail.com>2021-04-19 22:50:12 +0200
commit3746d5d7f20c169b2c5b1d94838305133770bd00 (patch)
treed3f426e21a5311feb7ccd240f657c1a4168ec3fc /includes/concert.php
parent144693a488a94979005710943b60316e924bf305 (diff)
downloadgigologadmin-3746d5d7f20c169b2c5b1d94838305133770bd00.tar.gz
gigologadmin-3746d5d7f20c169b2c5b1d94838305133770bd00.tar.bz2
gigologadmin-3746d5d7f20c169b2c5b1d94838305133770bd00.zip
Added form fields and functionality for admin to edit assigned users
Diffstat (limited to 'includes/concert.php')
-rw-r--r--includes/concert.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/includes/concert.php b/includes/concert.php
index 7afedca..462586d 100644
--- a/includes/concert.php
+++ b/includes/concert.php
@@ -130,6 +130,29 @@ if ( !class_exists('GiglogAdmin_Concert') ) {
return ($wpdb->last_error);
}
+ static function update_concertlog($cid, $ph1, $ph2, $rev1, $rev2)
+ {
+ global $wpdb;
+
+ $res = $wpdb->update('wpg_concertlogs', array(
+ 'wpgcl_photo1' => $ph1,
+ 'wpgcl_photo2' => $ph2,
+ 'wpgcl_rev1' => $rev1,
+ 'wpgcl_rev2' => $rev2
+ ),
+ array('wpgcl_concertid' => $cid)
+ );
+
+ if ( !$res ) {
+ // exit( var_dump( $wpdb->last_query ) ); //for onscreen debugging when needed
+ error_log( __CLASS__ . '::' . __FUNCTION__ . ": {$wpdb->last_error}");
+ die;
+ }
+
+ return ($wpdb->last_error);
+
+ }
+
public static function get($band, $venue, $date)
{
global $wpdb;