$Query1 = "SELECT post_name, post_title FROM `wp_posts` WHERE `post_type` = 'ad_listing' ORDER BY `wp_posts`.`ID` DESC LIMIT 5";
$Result1 = mysql_db_query($DBname7,$Query1,$Link1);
while ($Row1=mysql_fetch_array($Result1))
{
print "<a href='http://domain.com/ads/$Row1[post_name]/' target='_blank'><b>- $Row1[post_title]</b></a><br>\n";
}
There are currently 1 users browsing this thread. (0 members and 1 guests)