- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
if(isset($_GET['o']) and $_GET['o']>0) {$id_psub = $_GET['o'];} else { exit(); }
$result = mysql_query("SELECT * FROM psub WHERE id_psub='$id_psub'",$db);
$myrow = mysql_fetch_array($result);
$id_prepod = $myrow['id_prepod']; $type_psub = $myrow['type_psub']; $id_sub = $myrow['id_sub'];
$re = mysql_query("SELECT * FROM sub JOIN set_sub ON sub.id_sub = set_sub.id_sub WHERE sub.id_sub='$id_sub'", $db);
$m = mysql_fetch_array($re); $id_spec = $m['id_spec']; $n_cours = $m['n_cours'];
$r = mysql_query("SELECT t_spec, id_fac, n_spec, id_sett FROM spec WHERE id_spec = '$id_spec'", $db);
$yr = mysql_fetch_array($r); $t_spec = $yr['t_spec']; $id_fac = $yr['id_fac']; $n_spec = $yr['n_spec']; $id_sett = $yr['id_sett'];
$l = mysql_query("SELECT t_fac FROM fac WHERE id_fac='$id_fac'", $db);
if(mysql_num_rows($l) == 0) { $l = mysql_query("SELECT t_fac, id_ins FROM faci WHERE id_fac='$id_fac'", $db);
$o = mysql_fetch_array($l); $i = $o['id_ins'];
$rl = mysql_query("SELECT t_ins FROM ins WHERE id_ins = '$i'", $db); $ml = mysql_fetch_array($rl);
echo "<div class='s_sfu'>".$ml['t_ins']."</div><p align='center' class='f'>Факультет:</p>";
echo "<div class='s_sfu'>".$o['t_fac']."</div>";}
guest 21.08.2009 10:08 # 0
guest 23.08.2009 13:14 # 0