<th>Rating</th> <th>Featured?</th> <th>Action</th> </tr> </thead> <tbody> <?php if ($stores != null) { $ind = $begin + 1; foreach ($stores as $store) { $featured = "no"; if ($store->featured == 1) { $featured = "yes"; } $no_of_photos = $controllerPhoto->getNoOfPhotosByStoreId($store->store_id); $rating = $controllerRating->getRatingByStoreId($store->store_id); $extras = new Extras(); $updateUrl = $extras->encryptQuery1(KEY_SALT, 'store_id', $store->store_id, 'store_update.php'); $deleteUrl = $extras->encryptQuery1(KEY_SALT, 'store_id', $store->store_id, 'stores.php'); $featuredUrl = $extras->encryptQuery2(KEY_SALT, 'store_id', $store->store_id, 'featured', $featured, 'stores.php'); $viewUrl = $extras->encryptQuery1(KEY_SALT, 'store_id', $store->store_id, 'photo_store_view.php'); $photoUrl = $extras->encryptQuery1(KEY_SALT, 'store_id', $store->store_id, 'photo_store_insert.php'); $reviewUrl = $extras->encryptQuery1(KEY_SALT, 'store_id', $store->store_id, 'store_reviews_view.php'); echo "<tr>"; echo "<td>{$ind}</td>"; echo "<td>{$store->store_name}</td>"; echo "<td>{$store->store_address}</td>"; echo "<td>{$no_of_photos} Foto(s)</td>"; echo "<td>{$rating}</td>"; if ($store->featured == 1) {