Location: PHPKode > scripts > Create Your Own Directory > cms/HRAS/users/ajax1.php
require_once "../../auth/config.php";
$link = mysql_connect($hostname, $username,$password);
$domain = strstr($ref, 'realestate');
$name1 = $_GET['name'];
$id1 = $_GET['id'];
$value1 = $_GET['value'];
$str1="select * from user where email='$email' ";
$result1 = mysql_query($str1);
if($line = mysql_fetch_array($result1, MYSQL_ASSOC))

		$id1 = $line['id'];}

			echo "Entered values for $fnam field is already present in the database";
			if($value1 !="" && $value1 != "undefined"){
				$str = "update user set $fnam='$value' where UserId=$id1 ";
				$result = mysql_query($str);
				echo "Entered values for $fnam field will be updated after admin review ";				
					  echo "Entered values for $fnam field is empty so the value will not be updated in table";
Return current item: Create Your Own Directory