0
<?php
include('connect.php');
$upid=$_POST['id'];
$upname=$_POST['categoryname'];
$updesc=$_POST['description'];
$newupid=mysql_query("update tbl_category set categoryname='$upname', description='$updesc' where id='$upid'")or die(mysql_error());
echo "<script type='text/javascript'> alert('Updated Successfully'); window.location.href='view.php';</script>";
?>
This is updated code. It works successfully. but I want to show alert box "Nothing can be updated" if no changes made. And it should have the same .
3
Contributors
2
Replies
23
Views
2 Years
Discussion Span
Last Post by pixelsoul
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.