Location: PHPKode > projects > EZphotopress > ezphotopress-1.0.0/admin/posts/deletePost.php
<h3><?=DELETEPOSTS_TITLE?></h3>
<?php
if (isset($bid) && $bid != "" && $bid > 0 && is_numeric($bid)) {
	//get category data
	$queryName = $db->query("select title from ".TABPREFIX."blog where id=".$bid);
	$rowName = $queryName->fetch();
	
	
	//delete post
	$result = $db->query("delete from ".TABPREFIX."blog where id=".$bid);
	if ($result->sizeIDU() != -1) {
		$msg = DELETEPOSTS_SUCCESS_1.strtoupper($rowName['title']).DELETEPOSTS_SUCCESS_2;
	} else {
		$msg = DELETEPOSTS_ERROR_1.strtoupper($rowName['title']).DELETEPOSTS_ERROR_2;
	}
	
	?>
	
	<p class="ok">
		<?=$msg?>
	</p>
	<br>
	<br>
	<center>
		<a href="home.php?id=blog&action=manage&type=d" class="back"><?=DELETEPOSTS_CONTINUE?></a>
	</center>
<?php
}
?>
Return current item: EZphotopress