OWL slider trigger based on count

Please find below code 
var count = 2
var duration = 500;
jQuery('.owl-slider').trigger('to.owl.carousel', [count, duration, true]);

How to create a custom table using custom code in WordPress? 


global $wpdb;
    global $charset_collate;
    $table_name = $wpdb->prefix . 'custom_table';
	$sql = "CREATE TABLE IF NOT EXISTS $table_name (
		`ID` int(20) NOT NULL AUTO_INCREMENT,
		`name` varchar(200)  NOT NULL,
		`mobile_number` varchar(200) NOT NULL,
		`email` varchar(20) NOT NULL,
		PRIMARY KEY (`ID`)
	)$charset_collate;";
    require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
    dbDelta( $sql );

Encryption & Decryption using PHP

<pre>
//Encryption
function encryption_function($string){
	// Storingthe cipher method 
	$ciphering = "AES-128-CTR";

	// Using OpenSSl Encryption method 
	$iv_length = openssl_cipher_iv_length($ciphering);
	$options   = 0;

	// Non-NULL Initialization Vector for encryption 
	$encryption_iv = '0000111122223333';

	// Storing the encryption key 
	$encryption_key = "aviweb";
	
	return openssl_encrypt($string, $ciphering, $encryption_key, $options, $encryption_iv);
}
//Decryption
function decryption_function($string){
	// Storingthe cipher method 
	$ciphering = "AES-128-CTR";

	// Using OpenSSl Encryption method 
	$iv_length = openssl_cipher_iv_length($ciphering);
	$options   = 0;

	// Non-NULL Initialization Vector for encryption 
	$decryption_iv = '0000111122223333';

	// Storing the decryption key 
	$decryption_key = "aviweb";
	
	return openssl_decrypt($string, $ciphering, $decryption_key, $options, $decryption_iv);
}
</pre>

Compare two dates in php

<pre>
	<?php 
	$date = "2021-12-25";
	$today = date("Y-m-d");
	$today_time = strtotime($today);
	$compare_date = strtotime($date);
	if($compare_date > $today_time){
		echo 'Future date';
	}else{
		echo 'Past Date';
	}
	?>
</pre>