[insert_php]
$test2=”;
$walk_id=intval($_GET[“walk_id”]);
global $wpdb;
$mylink = $wpdb->get_row( “SELECT post_id FROM wp_postmeta where meta_value=$walk_id and meta_key = ‘old_walk_id'”);
$test = $mylink->post_id;
$mylink2 = $wpdb->get_row( “SELECT guid FROM wp_posts where ID=$test”);
$test2 = $mylink2->guid;
echo ‘

You have come to this page from CBMW Spring 2017 Programme. To see the walk please click this ‘;
echo ‘link.‘;
[/insert_php]