Создание сайта "Красная книга"
Курсовой проект - Компьютеры, программирование
Другие курсовые по предмету Компьютеры, программирование
;/td>
<?
while ($myrow = mysql_fetch_array($result))
{
//tr-строка,td-ячейка,H1-1-й уровень
printf("");
printf("");
printf("");
printf("");
printf("");
printf("");
printf("");
printf("");
}
}
//Найти по царству
if (@$find4K)
{
?>
Введите царство:
<?
}
if(@$find4K)
{
if (empty($Kingdom))
{
print("") ;
exit();
}
require_once("connection.php");
$sql ="SELECT ID_Creature, Rus_Name, Lat_Name, Date, Name_Kingdom, Name_Class, Name_Family, Name_Sort FROM (((MAIN join 1_Kingdom on MAIN.ID_Kingdom = 1_Kingdom.ID_Kingdom) join 2_Class on MAIN.ID_Class = 2_Class.ID_Class) join 3_Family on MAIN.ID_Family = 3_Family.ID_Family) join 4_Sort on MAIN.ID_Sort = 4_Sort.ID_Sort WHERE ID_Creature LIKE %$Name_Kingdom%";
$result = mysql_query($sql);
?>
<?
while ($myrow = mysql_fetch_array($result))
{
//tr-строка,td-ячейка,H1-1-й уровень
printf("");
printf("");
printf("");
printf("");
printf("");
printf("");
printf("");
printf("");
}
}
//Найти по классу
if (@$find5C)
{
?>
Введите класс:
<?
}
if(@$find5C)
{
if (empty($Class))
{
print("") ;
exit();
}
require_once("connection.php");
$sql ="SELECT ID_Creature, Rus_Name, Lat_Name, Date, Name_Kingdom, Name_Class, Name_Family, Name_Sort FROM (((MAIN join 1_Kingdom on MAIN.ID_Kingdom = 1_Kingdom.ID_Kingdom) join 2_Class on MAIN.ID_Class = 2_Class.ID_Class) join 3_Family on MAIN.ID_Family = 3_Family.ID_Family) join 4_Sort on MAIN.ID_Sort = 4_Sort.ID_Sort WHERE ID_Creature LIKE %$Name_Kingdom%";
$result = mysql_query($sql);
?>
<?
while ($myrow = mysql_fetch_array($result))
{
//tr-строка,td-ячейка,H1-1-й уровень
printf("");
printf("");
printf("");
printf("");
printf("");
printf("");
printf("");
printf("");
}
}
//Найти по семейству
if (@$find6F)
{
?>
Введите семейство:
<?
}
if(@$find6А)
{
if (empty($Family))
{
print("") ;
exit();
}
require_once("connection.php");
$sql ="SELECT ID_Creature, Rus_Name, Lat_Name, Date, Name_Kingdom, Name_Class, Name_Family, Name_Sort FROM (((MAIN join 1_Kingdom on MAIN.ID_Kingdom = 1_Kingdom.ID_Kingdom) join 2_Class on MAIN.ID_Class = 2_Class.ID_Class) join 3_Family on MAIN.ID_Family = 3_Family.ID_Family) join 4_Sort on MAIN.ID_Sort = 4_Sort.ID_Sort WHERE ID_Creature LIKE %$Name_Family%";
$result = mysql_query($sql);
?>
<?
while ($myrow = mysql_fetch_array($result))
{
//tr-строка,td-ячейка,H1-1-й уровень
printf("");
printf("");
printf("");
printf("");
printf("");
printf("");
printf("");
printf("");
}
}
//Найти по роду
if