|
|
|
|
<?php
$result11 = mysql_query("SELECT * from universities_specialities WHERE id_university='$id_university'", $db);
if (!$result11)
{
echo "<p>Запрос на выборку данных из базы не прошел. Напишите об этом администратору tinisto@mail.ru <br> <strong>Код ошибки:</strong></p>";
}
if (mysql_num_rows($result11) > 0)
while ($myrow11 = mysql_fetch_array($result11))
{
$id_speciality = $myrow11[id_speciality];
$result12 = mysql_query("SELECT * from specialities WHERE id_speciality='$id_speciality'", $db);
if (!$result12)
{
echo "<p>Запрос на выборку данных из базы не прошел. Напишите об этом администратору tinisto@mail.ru <br> <strong>Код ошибки:</strong></p>";
exit (mysql_error());
}
if (mysql_num_rows($result12) > 0)
{
$myrow12 = mysql_fetch_array($result12);
do
{
printf ("<p><strong>%s</strong> %s</p>", $myrow12["kod"], $myrow12["title"]);
}
while ($myrow12 = mysql_fetch_array($result12));
}
}
?>
|
| |
|
|
|
|
|
|
|
для: franko
(21.04.2011 в 11:52)
| | Не очень понятно, в чем проблема? | |
|
|
|
|
|
|
|
для: cheops
(21.04.2011 в 11:58)
| | Очевидно, надо ВЫБРАТЬ! | |
|
|
|