/[health_html]/inc/pgLinkovi.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /inc/pgLinkovi.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Fri Sep 28 23:34:37 2001 UTC (22 years, 7 months ago) by ravilov
Branch: MAIN
Added some new pages to PLIVAmed. Some bugfixes.

1 ravilov 1.1 <?php
2     $sql = "SELECT url, naslov, opis FROM linkovi ORDER BY naslov";
3     $sth = $dbh->prepare($sql);
4     if (!$sth) error("Cannot prepare query: \"$sql\"");
5     if (!$sth->execute()) error("Cannot execute query: \"$sql\"");
6     $linkovi = array();
7     while ($row = $sth->fetchrow_array())
8     array_push($linkovi, array("url" => MyEscape($row[0]), "naslov" => MyEscape($row[1]), "opis" => MyEscape($row[2])));
9     $sth->finish();
10     $tpl->assign("linkovi", $linkovi);
11     ?>

  ViewVC Help
Powered by ViewVC 1.1.26