database_query($sqlpi) or $em .= $database->database_error();
$row = $database->database_fetch_row($queryc);
$hcpuid=$row[0];
$hcpuname=$row[1];
$isapproved=$row[2];
$entrydate=$row[3];
$blogid=$row[4];
$ctp_used=$row[5];
$somestuff="";
if($_POST["theuid"]=="21092" || $_POST["theuid"]=="9" || $_POST["theuid"]=="8")
{
$isactive="";
if($isapproved=="yes")
{
$isactive='checked="checked"';
}
$somestuff=''.$entrydate.' Active ';
if($ctp_used == "yes")
{
$somestuff.='Used';
}
}
$arr = array ('error'=>$em,'entrydate'=>$entrydate,'somestuff'=>$somestuff);
echo json_encode($arr);
?>