I would like to create a new containing after 3 results, using PDO result loop. For my self-study-project I have to made a product page with
after 3 results, using PDO result loop. For my self-study-project I have to made a product page with
For my self-study-project I have to made a product page with
You need to add a new closure tag and open new one every 3th iteration.
query($sql); $stmt->execute(); $i=1; while ($row = $stmt->fetch(PDO::FETCH_OBJ)) { ?> pname ?> Levertijd: pdelivertime ?> pprice ?> Meer informatie "; $i++; } ?> 0 讨论(0) 查看其它3个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复