".$portrait_feedback."
include '../includes/db.php'; include '../includes/cache.php'; $image = $_GET["image"]; open_database(); $query = "SELECT portrait_data.portrait_filename, portrait_data.portrait_name, portrait_data.category, feedback.text FROM portrait_data LEFT JOIN feedback ON portrait_data.portrait_filename = feedback.portrait_filename WHERE portrait_data.portrait_filename = '$image'"; $result=mysql_query($query); $row = mysql_fetch_assoc($result); $portrait_name = stripslashes($row[portrait_name]); $portrait_filename = $row[portrait_filename]; $category = $row[category]; $portrait_feedback = $row[text]; switch ($category) { case 1: $category_name = "Adults"; $category_url = "adults.php"; break; case 2: $category_name = "Pets"; $category_url = "pets.php"; break; case 3: $category_name = "Children"; $category_url = "children.php"; break; case 4: $category_name = "For sale"; $category_url = "forsale.php"; break; } ?>
".$portrait_feedback."