[:en]Show Khru Certificate[:th]แสดงใบประกาศนียบัตรของครูมวยในประเทศของคุณ[:]

[:en][private]

Show Khru Certificates in your country.

[insert_php]

$servername = “localhost”;
$username = “imaes920_imaes2”;
$password = “dbimaes”;
$current_user = wp_get_current_user()->ID;
//$current_user = 22;
//Create connection
$conn = mysqli_connect($servername, $username, $password);
mysql_select_db(“imaes920_dbimaes”);

// Check connection
if (!$conn) {
die(“Connection failed: ” . mysql_connect_error());
}

$query = mysql_query(“SELECT `meta_value` FROM `imaesdbusermeta` WHERE `user_id`= “.$current_user.” AND `meta_key`= ‘_mgm_cf_id_country’”);

$result = mysql_fetch_assoc($query);
$code3 = $result[meta_value];

$sql = “SELECT * FROM `certificates_khru` WHERE `ShortCodeCountry` = ‘$code3’ GROUP BY `GymName` ORDER BY `GymName`”;
$results = mysql_query($sql);
echo ‘
Search by :

‘;
echo ‘

‘;

[/insert_php]

Awarded Date :





[/private][:th][private]

แสดงใบประกาศนียบัตรของครูมวยในประเทศของคุณ

[insert_php]

$servername = "localhost";
$username = "imaes920_imaes2";
$password = "dbimaes";
$current_user = wp_get_current_user()->ID;
//$current_user = 22;
//Create connection
$conn = mysqli_connect($servername, $username, $password);
mysql_select_db("imaes920_dbimaes");

// Check connection
if (!$conn) {
die("Connection failed: " . mysql_connect_error());
}

$query = mysql_query("SELECT `meta_value` FROM `imaesdbusermeta` WHERE `user_id`= ".$current_user." AND `meta_key`= '_mgm_cf_id_country'");

$result = mysql_fetch_assoc($query);
$code3 = $result[meta_value];

$sql = "SELECT * FROM `certificates_khru` WHERE `ShortCodeCountry` = '$code3' GROUP BY `GymName` ORDER BY `GymName`";
$results = mysql_query($sql);
echo '
Search by :

';
echo '

';

[/insert_php]

Awarded Date :



[/private][:]