[insert_php]
global $wpdb;
//Extract the data
$myrows = $wpdb->get_results( “SELECT navn, telefon, funktion, email FROM telefon WHERE slettet = ‘N’ and offentlig = ‘J’ ORDER BY navn” );
//Present the data
echo “
” ; echo $myrows->navn;echo “ | ” ; echo $myrows->telefon;echo “ | ” ; echo $myrows->funktion;echo “ | ” ; echo $myrows->email;echo “ |
[/insert_php]