mysql_query example

mysqli_query( $dbh$query );
                }
            } else {
                if ( function_exists( 'mysql_set_charset' ) && $this->has_cap( 'set_charset' ) ) {
                    $set_charset_succeeded = mysql_set_charset( $charset$dbh );
                }
                if ( $set_charset_succeeded ) {
                    $query = $this->prepare( 'SET NAMES %s', $charset );
                    if ( ! empty( $collate ) ) {
                        $query .= $this->prepare( ' COLLATE %s', $collate );
                    }
                    mysql_query( $query$dbh );
                }
            }
        }
    }

    /** * Changes the current SQL mode, and ensures its WordPress compatibility. * * If no modes are passed, it will ensure the current MySQL server modes are compatible. * * @since 3.9.0 * * @param array $modes Optional. A list of SQL modes to set. Default empty array. */
Home | Imprint | This part of the site doesn't use cookies.