<?php include("../../include/dbconnect.php"); 

 $result1=mysqli_query($conn,"select max(catcode) from prodcat ");
 $row1=mysqli_fetch_row($result1);
 $catcode=$row1[0];
 
 $catcode=$catcode+1; 
 
$query="insert into prodcat values ('$catcode','$category','$rf','$discount',NULL)";
mysqli_query($conn,$query) or die(mysqli_error());
?>
<H3><b>Thank you!!</H3></b>
<br>
<H3><a href="view.php">View Product Category Master</a>

<br><br><font size=1><center><a href= "input.html">Add another Product Category</center></font>
<br><br><font size=1><center><a href= "index.html">Return to index page</center></font>
