$query = "select * from `$table` where `id`='".intval($certid)."' ";
$res = mysql_query($query);
$body="";
if(mysql_num_rows($res) > 0)
{
printf(_("Your certificate request is still queued and hasn't been processed yet. Please wait, and go to Certificates -> View to see it's status."));
$body = "A certificate has timed out!\n\n";
}
else
{
printf(_("Your certificate request has failed to be processed correctly, see %sthe WIKI page%s for reasons and solutions.")." certid:$table:".intval($certid), "<ahref='http://wiki.cacert.org/wiki/FAQ/CertificateRenewal'>", "</a>");