'.$row['IME'].' '.$row['PREZIME'].' |
'.$row['NAZIV_REZULTATA'].' |
'.$row['NAZIV'].' |
'.$opis.' |
'.$row['DATUM_POCETKA'].' |
'.$row['NAZIV_ORG_JED_UNIVERZITETA'].' |
';
$upit = 'SELECT nastavni_kadar.ime as name, nastavni_kadar.prezime as lastname, ucesnici.AUTOR
FROM nastavni_kadar, ucesnici
WHERE ucesnici.REZULTAT = "'.$row['ID_REZULTATA'].'"
AND ucesnici.NASTAVNIK = nastavni_kadar.ID_NASTAVNIKA
AND ucesnici.AUTOR <> 1
ORDER BY nastavni_kadar.ime ASC';
$ucesnici = mysql_query($upit, $nrad) or die(mysql_error());
if (mysql_affected_rows() == 0)
$tabela .= 'Nema';
else {
while ($rowUcesnik = mysql_fetch_assoc($ucesnici))
{
if ($rowUcesnik['AUTOR'] == "") {
$tabela .= 'Nema';
}
else
$tabela .= $rowUcesnik['name'].' '.$rowUcesnik['lastname'].' ';
}
}
$tabela .= ' | ';
if ($prilog)
$tabela .= ''.$prilog.' | ';
else
$tabela .= 'Nema priloga | ';
if ($_SESSION['vrsta_korisnika'] == 1)
$tabela .= '
|
 | ';
$tabela .= '