
PK 
<?php
session_start();
require_once 'common/common.php';
require_once 'common/secure.php';
include("connexion.php");
include("head.php");
?>
<h2 id="icon_pick">Ajent Added Sucessfully</h2>
<?php
$dat=date("d-m-Y");
$sql_test="SELECT
*
FROM
ajent
WHERE
ajname='".$_GET[headperson]."'
AND
ajcomp='".$_GET[headname]."'
AND
ajaddress='".$_GET[headaddress]."'
AND
ajphone='".$_GET[headphone]."'
AND
ajdec='".$_GET[headdecp]."'
AND
date='".$_GET[dat]."'";
$result_test=mysql_query($sql_test);
$num_row=mysql_num_rows($result_test);
if($num_row==0){
$sql="INSERT INTO ajent (ajname, ajcomp, ajaddress, ajphone, ajdec, date, gst, status)
VALUES ('$_GET[headperson]', '$_GET[headname]', '$_GET[headaddress]', '$_GET[headphone]', '$_GET[headdecp]', '$_GET[dat]', '$_GET[gst]', 'active')";
$result=mysql_query($sql) or die('error');
}
echo "<center><br><br><img src=msg.jpg alt=Sucess><br><br>Client <b>$headname</b> Added Sucessfully, <a href=addajent.php>Click here</a> to Add Another Ajent.
<br><br>
<a href=clients.php>Click here to be back at Clients Management</a><br></center>
";
?>
<br><br><br>
<?php
include "foot.php";
?>


PK 99