You can not see this content without permission.
You can not see this content without permission.
[insert_php]
global $wpdb;
$myrows = $wpdb->get_results( «SELECT a.batplass Båtplass, concat(a.eier,’ ‘,if(b.medlemsnummer>1000, concat(b.etternavn, case when b.fornavn is null then » else concat(‘, ‘,b.fornavn) end,’ (Leie)’),concat(b.etternavn, case when b.fornavn is null then » else concat(‘, ‘,b.fornavn) end))) Eier, a.Type, a.Regnr, a.Bredde, a.Lengde, a.Merknad, a.Bilde FROM wp_storfosnabater a join wp_storfosnamedlemmer b on a.eier=b.medlemsnummer order by a.batplass» );
echo «
«;
[/insert_php]