The countries page has been released. It offers country specific database search and a country specific news page.
Create a symoblic link in windows
Redirecting content to a different folder in Windows is fairly easy.
Open a command prompt by pressing the Windows START Button, type CMD and hit the enter button.
mklink /J “C:\Backup” “D:\Backup”
Change the folder paths to your needs and paste the code using right click -> Paste inside the open command prompt. Hit enter and you’re done.
PDO mySQL UTF-8 accents incompatibility
Add the charset to your connection string
"mysql:host=$host;dbname=$db;charset=utf8"
PHP sessions in wordpress
Add this to you functions.php
add_action('init', 'myStartSession', 1); //Initialize session add_action('wp_logout', 'myEndSession'); //End session on logout add_action('wp_login', 'myEndSession'); //End session on account change function myStartSession() { if(!session_id()) { session_start(); } } function myEndSession() { session_destroy (); }
Access the value in normal PHP fashion
$_SESSION['myKey'] = "Some data I need later";
Source: https://silvermapleweb.com/using-the-php-session-in-wordpress/
#1136 – Column count doesn’t match value count at row 1
The error might be shown because of an incorrect trigger…