include("bd.php"); $id = $_GET['id']; $categories = $_GET['categories']; if (isset($id) && $id != '') { $sql_id = "SELECT name FROM model WHERE id = '$id'"; $result_id = @mysql_query($sql_id,$db) or die("" . mysql_error()); $row_id = mysql_fetch_array($result_id); $title = $row_id['name']; $title_head = "$title - $title, $title, - $title, $title"; } if (isset($categories) && $categories != '') { $sql_categories = "SELECT name FROM categories WHERE id = '$categories'"; $result_categories = @mysql_query($sql_categories,$db) or die("" . mysql_error()); $row_categories = mysql_fetch_array($result_categories); $title = $row_categories['name']; $title_head = "$title - $title, $title, - $title, $title"; } if ($title_head == "") $title_head = "Интернет магазин"; ?>