PK

ADDRLIN : /home/anibklip/pcfcindia.com/20-21/
FLL :
Current File : /home/anibklip/pcfcindia.com/20-21/subclntadded.php

<?php 
	session_start();
	require_once 'common/common.php';
	require_once 'common/secure.php';
include("connexion.php");
include("head.php");
?>
    <h2 id="icon_pick">Sub Client Added</h2> 
<?php
$dat=date("d-m-Y");
	
	$sql_test="SELECT 
					* 
				FROM
					clients
				WHERE
					subname='".$_GET[subname]."'
				AND
					subaddress='".$_GET[subaddress]."'
				AND
					subphone='".$_GET[subphone]."'
				AND
					subperson='".$_GET[subperson]."'
				AND
					clntid='".$_GET[name]."'
				AND
					date='".$dat."'";
	$result_test=mysql_query($sql_test);
	$num_row=mysql_num_rows($result_test);
	if($num_row==0)
	{
		$sql="INSERT INTO 
						clients
							(subname,subaddress,subphone,subperson,clntid,date,status)
						VALUES
							('$_GET[subname]','$_GET[subaddress]','$_GET[subphone]','$_GET[subperson]','$_GET[name]','$dat','active')";
		$result=mysql_query($sql) or die('error');
	}
	echo "<center><br>Sub Client <b>$subname</b> Added Sucessfully, <br><a href=subclnt.php>Click here</a> to Add Another Client.</center>";
?>
<br><br><br>
<?php include "foot.php"; ?>


PK 99