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

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

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