if ($pid) {
$sql = "SELECT * FROM projects WHERE id = " . $pid;
} else {
$sql = "SELECT * FROM projects WHERE project_style = '" . $style . "' AND status = 'Active' ORDER BY project_order ASC;";
}
$result = runSQL($sql);
$row = mysql_fetch_assoc($result);
$pid = $row["id"];
?>
echo $row["project_title"] ?>
CLIENT: echo $row["project_client"] ?>
echo $row["project_description"] ?>
function create_link($itemval) {
if (strstr($itemval, ".jpg") || strstr($itemval, ".png") || strstr($itemval, ".gif") || strstr($itemval, ".bmp") || strstr($itemval, ".jpeg")) {
return "change_image";
}
if (strstr($itemval, ".mov")) {
return "change_movie";
}
if (strstr($itemval, ".swf")) {
return "change_flash";
}
}
if ($style == "tv") {
$clickaction = "change_movie";
$default_mov = "images/portfolio/" . $style . "/" . $row["project_file1"];
} else {
$clickaction = "change_image";
}
if ($row["project_file1"]) echo "- 1
";
if ($row["project_file2"]) echo "- 2
";
if ($row["project_file3"]) echo "- 3
";
if ($row["project_file4"]) echo "- 4
";
if ($row["project_file5"]) echo "- 5
";
?>
if ($row["project_file6"]) echo "- 6
";
if ($row["project_file7"]) echo "- 7
";
if ($row["project_file8"]) echo "- 8
";
if ($row["project_file9"]) echo "- 9
";
if ($row["project_file10"]) echo "- 10
";
?>