Click here to Skip to main content
16,018,264 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi example (wp):
PHP
<?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; ?>


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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900