
PK 
<?php
include "conn.php";
include "templatic/header.php";
?>
<h2 id="icon_pick">Ajent Added Sucessfully</h2>
<?php
$dat=date("d-m-Y");
$sql="INSERT INTO agents(ajname,ajcomp,ajaddress,ajphone,ajdec,date,status)
VALUES('$_POST[headperson]','$_POST[headname]','$_POST[headaddress]','$_POST[headphone]','$_POST[headdecp]','$dat','active')";
$result=mysqli_query($conn,$sql) or die('error in head');
echo"<center><br><br><img src=./img/success.png alt=images><br><br>Ajent <b>$_POST[headname]</b> Added sucessfully,<br /> <a href=addajent.php>Click Here</a> to Add a new Ajent.
<br><br><a href=clients.php>Click here to be back at Ajent Management</a> </center>";
?>
<?php
include "templatic/footer.php";
?>


PK 99