/[health_html]/inc/menuMED.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

Contents of /inc/menuMED.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Wed Sep 19 12:23:57 2001 UTC (22 years, 7 months ago) by ravilov
Branch: MAIN
Added thefilez/med/ (PLIVAmed site). Other major changes...

1 <?php
2 function my_cmp2($a, $b) { return MyCompare($a["title"], $b["title"]); }
3 include_once("inc/conn.php");
4 $sql = "SELECT spec_id, opis FROM specijalizacije";
5 $sth = $dbh->prepare($sql);
6 if (!$sth) error("Cannot prepare query: \"$sql\"");
7 if (!$sth->execute()) error("Cannot execute query: \"$sql\"");
8 $menu3 = array();
9 while ($row = $sth->fetchrow_array()) {
10 list($id2, $txt) = $row;
11 array_push($menu3, array("id" => $id2, "title" => MyEscape($txt)));
12 }
13 $sth->finish();
14 usort($menu3, "my_cmp2");
15 $tpl->assign("MENU3", $menu3);
16 $menu = array();
17 ?>

  ViewVC Help
Powered by ViewVC 1.1.26