$targetArray = array("ID", "name", "realPrice", "label", "defaultImg"); $productArray = $vpm->muddyQuery($conditionArray, $targetArray); //var_dump($productArray); $lengts = count($productArray); $num = 0; foreach ($productArray as $item2) { if ($num >= 36) { break; } ?> <li><a href="shop-info.php?id=<?php echo $item2['ID']; ?> "><img style="width:180px;height:180px" src="<?php echo $virtualRootPath . $img->getPathByID($item2['defaultImg']); ?> " title="<?php echo $item2['name']; ?> " alt="" /></a><div class="upside"><?php echo $item2['name']; ?> </div><div class="mid"><?php echo $item2['label']; ?> </div><div class="downside">¥<?php echo $item2['realPrice']; ?> </div></li> <?php
<?php require_once '../admin/web.config.php'; require_once $realLibPath . "model/images.model.php"; $img = new Images(); echo $img->getPathByID($_POST['id']);