Plugin Directory

Changeset 3239433


Ignore:
Timestamp:
02/12/2025 01:58:48 PM (14 months ago)
Author:
bssoftware
Message:

Deploying version 1.0.0

Location:
bookr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bookr/tags/1.0.0/includes/database/queries/appointment-queries.php

    r3239202 r3239433  
    3636    public function insertAppointment( $appointment ) {
    3737        try {
    38             $customer_table = $this->wpdb->prefix . $this->tableAppointment;
    3938            $customer_data = $this->wpdb->get_results(
    4039                $this->wpdb->prepare(
    4140                    "SELECT id
    42                     FROM $customer_table
     41                    FROM $this->tableCustomer
    4342                    WHERE firstname = %s
    4443                    AND lastname = %s
     
    6463                );
    6564
    66                 $customer_formats = array('%s', '%s', '%s','%s', '%s');
     65                $customer_formats = array('%s', '%s', '%s','%s');
    6766
    6867                // Insert the new customer
    69                 $this->wpdb->insert( $customer_table, $customer_data, $customer_formats );
     68                $this->wpdb->insert( $this->tableCustomer, $customer_data, $customer_formats );
    7069
    7170                $customer_id = $this->wpdb->insert_id;
     
    8887
    8988            // Insert the new appointment
    90             $this->wpdb->insert( $this->wpdb->prefix . $this->tableAppointment, $appointment_data, $appointment_formats );
     89            $this->wpdb->insert( $this->tableAppointment, $appointment_data, $appointment_formats );
    9190
    9291            return $appointment_data;
  • bookr/trunk/includes/database/queries/appointment-queries.php

    r3239202 r3239433  
    3636    public function insertAppointment( $appointment ) {
    3737        try {
    38             $customer_table = $this->wpdb->prefix . $this->tableAppointment;
    3938            $customer_data = $this->wpdb->get_results(
    4039                $this->wpdb->prepare(
    4140                    "SELECT id
    42                     FROM $customer_table
     41                    FROM $this->tableCustomer
    4342                    WHERE firstname = %s
    4443                    AND lastname = %s
     
    6463                );
    6564
    66                 $customer_formats = array('%s', '%s', '%s','%s', '%s');
     65                $customer_formats = array('%s', '%s', '%s','%s');
    6766
    6867                // Insert the new customer
    69                 $this->wpdb->insert( $customer_table, $customer_data, $customer_formats );
     68                $this->wpdb->insert( $this->tableCustomer, $customer_data, $customer_formats );
    7069
    7170                $customer_id = $this->wpdb->insert_id;
     
    8887
    8988            // Insert the new appointment
    90             $this->wpdb->insert( $this->wpdb->prefix . $this->tableAppointment, $appointment_data, $appointment_formats );
     89            $this->wpdb->insert( $this->tableAppointment, $appointment_data, $appointment_formats );
    9190
    9291            return $appointment_data;
Note: See TracChangeset for help on using the changeset viewer.