What better place to have a grown and mature event than Upscale Restaurant and Lounge in Virginia Beach. RSVP your party today!
[insert_php]
global $wpdb;
$posting= $wpdb->get_results(“SELECT * FROM curtis_Newsite.mainSiteposts WHERE post_status=’publish’ AND post_type=’post’ LIMIT 12”);
for ($a =0; $a < count($posting); $a++){
if ($posting[$a]->{“post_title”} != ”){
$img = $wpdb->get_results(“SELECT * FROM curtis_Newsite.mainSiteposts WHERE post_parent='”.$posting[$a]->{“ID”}.”‘ AND post_type=’attachment’ LIMIT 1″);
$pst = $posting[$a]->{“post_content”};
$rest = substr($pst, 0, 250);
if ($a !=’3′){
$style=’style=”border-bottom: 1px solid #fff;”‘;
}
else{
$style=’style=”border-bottom: 0px;”‘;
}
if(get_the_post_thumbnail( $posting[$a]->{“ID”}, ‘thumbnail’ ) !=”){
echo ‘‘;
}
else {
echo ‘‘;
}
}
}
[/insert_php]