• File: checkDuplicateblogTitle-20260623200034.php
  • Full Path: /home/aaryhspitl/domains/aaryawomenshospital.com/private_html/103.117.180.2/checkDuplicateblogTitle-20260623200034.php
  • File size: 432 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
include "db_connect.php";

$titleSlug = !empty($_GET['titleSlug'])?$_GET['titleSlug']:'';
$titleSlug=check_input($con,$titleSlug);
 	
$stmt = $con->prepare('SELECT `title_slug` FROM `ahq_blog` WHERE `title_slug` = ? ');
$stmt->bind_param('s', $titleSlug);

  $result = $stmt->execute();
  $stmt->store_result();
  
  if ($stmt->num_rows == 0) {
  	echo "true";exit;
  } else {
	  echo "false";exit;
  }
  
  $stmt->close();
?>