I want to call php function that pulls data from database in WordPress and show results
on page for example.
My function/query is like following way:
<?php
global $wpdb;
$myrows=$wpdb->get_results("SELECT ident_broj, ime, prezime FROM marija_radnik_CYR");
echo $myrows;
?>
declare wpdb global first and then use it !
Do not require to declare $wpdb again if your using the function in already relative wp page