//echo $catid."-";
$catid=$_GET['catid'];
include ('book_sc_fns.php');
// The shopping cart needs sessions, so start one
session_start();
$name = get_category_name($catid);
// описание категории
$conn = db_connect();
$query1 = "select * from categories where catid='$catid'";
$result1 = @mysql_query($query1);
$result1 = @mysql_fetch_array($result1);
$descrip = $result1["descrip"];
session_register("descrip");
do_html_header($name);
echo " ";
// картинка категории
if (@file_exists("catimage/".$catid.".png"))
{
$f="catimage/"; $v=".png";
$image=$f.$catid.$v;
$title = "";
echo "
";
// do_html_url($url, $title);
}
echo $result1["descrip"]."";
$book_array = get_books($catid);
// display_books($book_array);
if (!is_array($book_array))
{
echo "
Товар ВРЕМЕННО отсутствует
";
}
else
{
//create table
echo "
";
if (@file_exists("isbnimage/".$row["isbn"].".png"))
{
$f="isbnimage/"; $v=".png";
$image=$f.$row[isbn].$v;
$title = " ";
echo " ";
}
echo " | ";
$title = $row["author"]." ";
do_html_url($url, $title);
$descripisbn=substr($row["title"], 0, 150);
if ($row["price"]>1) echo " Цена: ". number_format($row["price"]*$usd, 0)." руб."; echo " ".$descripisbn.""; echo " "; else echo " [ КУПИТЬ ] ";} else echo " "; echo " |