[php]
function get_entry_count($formid)
{
global $wpdb;
$count = $wpdb->get_results(“SELECT *
FROM wp_rg_lead as leads
where leads.created_by = ‘8’
and leads.form_id = ‘1’;”);
echo $count;echo ‘
‘;
foreach ($count as $ids) {
echo “
“;echo $ids->id;echo “
“;
echo “
“;echo $ids->date_created;echo “
“;
echo “
“;echo $ids->payment_status;echo “
“;
echo “
“;echo $ids->payment_date;echo “
“;
echo “
“;echo $ids->payment_amount;echo “
“;
echo “
“;echo $ids->ID;echo “
“;
echo “
“;echo $ids->ID;echo “
“;
echo “
“;echo $ids->ID;echo “
“;
}
}
get_entry_count(1);
[/php]