Welcome to Cigar Reviews
?> readReviews($_GET['id']); $productObj = $product->getProduct($_GET['id']); //Load Number of reviews for product $reviewCount = $productObj->number_of_reviews; print "

{$productObj->brand}"; if ("$productObj->name" !== "$productObj->brand") print " {$productObj->name}"; print " {$productObj->model}

" . "\n"; ?>

Average Review: average_rating?>

http://www.cigarinfo.com //?> ( user review)

Manufacturer's Description: " . stripslashes($productObj->description) . "

"; print "
" . "\n"; print "
" . "\n"; print "
" . "\n"; // This is what prints if there are no reviews if (!$reviews) { print " There are no reviews for this cigar."; // This is what prints if the user is loggedin if($_SESSION['is_logged'] == true) { print " Be the first one to write a review."; ?>
If you would like to be the first one to review this cigar, please register and log in.
$review) { ?>
Rating: userRating) == 1) print "checked";?> disabled/> userRating) == 2) print "checked";?> disabled/> userRating) == 3) print "checked";?> disabled/> userRating) == 4) print "checked";?> disabled/> userRating) == 5) print "checked";?> disabled/> title)?>, createdOn?>
" . "\n"; print " By " . $review->user . "" . "  " . "(" . "$review->city" . ", " . "$review->state_province" . " " . "$review->country" . ")" . "

"; print "
"; print "
" . stripslashes($review->review); if($_SESSION['user_id'] == $review->userId) { $reviewAlreadyCreated = true; print "
"; } print "
" . "


"; } // If the user is logged in and there are reviews if($_SESSION['is_logged'] == true && !$reviewAlreadyCreated) { ?>
If you would like to review this cigar, please register or log in above if you have an existing membership.