query($sql) or die($mysqli->error); if ($row = $result->fetch_assoc()) { $title = $row['ec_headline']; $storyid = $row['ec_id']; $subhead = $row['ec_subhead']; $posted = $row['ec_posted']; $author = $row['ec_author']; $body = $row['ec_fullstory']; $image_name = $row['ec_image']; $caption = $row['ec_comments']; $image_w = $row['ec_image_w']; $image_h = $row['ec_image_h']; $dashHeadline = str_replace(" ", "-", $title); if ($image_w > 400) { $ratio = $image_w / 400; $image_w = 400; $image_h = $image_h / $ratio; } $update = "update ecn_stories set ec_viewcount = ec_viewcount+1 where ec_id = '$_GET[ref]'"; $uresult = $mysqli->query($update) or die($mysqli->error); } else { $title = "Sorry, could not find that story."; } } else { $title = 'Error: You cannot access this page directly.'; } ?> <? echo "$title"; ?>

$subhead\n"; } if (!empty($image_name)) { ?>
Click here for Printer Friendly Version

\n"; ?>
Latest News