功能选择而pdo php [英] function select while pdo php

查看:58
本文介绍了功能选择而pdo php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
example(wp):

hi example (wp):

<?php
 $i=0;
 $recent = new WP_Query("showposts=10");
 while($recent->have_posts()) : $recent->the_post();
?>
<li>
<?php the_permalink(); ?> ///// link
<?php the_title();  ?> /////// title
</li>
<?php endwhile; ?>





即时创建从sql使用pdo读取的函数php。



im create function for read while from sql using pdo php.

推荐答案

i = 0;
i=0;


recent = new WP_Query( showposts = 10);
while(
recent = new WP_Query("showposts=10"); while(


recent-> have_posts()):
recent->have_posts()) :


这篇关于功能选择而pdo php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆