require_once('Connections/conn.php');
$search_by=$_REQUEST['search_by'];
$file=$_SERVER['PHP_SELF']; $pos=strrpos($file,"/"); $pos++; $len=strlen($file); $file_name=substr($file,$pos,$len);
$h="index";
require_once('count.php');
include("webmaster/fckeditor/fckeditor.php") ;
$fir=$_SERVER['HTTP_HOST'];
$sec=$_SERVER['PHP_SELF'];
$check_file=explode("/",$sec);
// $check_file[2];
//echo $make_url="http://".$fir."".$sec;
$make_url1=$make_url;
$num_row=product_count($search_by);
if($_POST['submit']=='Submit')
{
$mul_times=$_POST['flag_url'];
$bio_details=$_POST['bio_details'];
$lang=$_POST['langue'];
//$url=$_POST["url_".$z];
$categ_type=$_POST['type'];
$fname=$_POST['nom'];
$lname=$_POST['prenom'];
$bdate=$_POST['naissance'];
$ddate=$_POST['deces'];
$email=$_POST['email'];
$add_bio="select * from biographies_new where BIOnom='$fname' and BIOprenom='$lname' and cat_id=$categ_type";
$add_res=mysql_query($add_bio) or die(mysql_error());
$add_record=mysql_num_rows($add_res);
if($add_record > 0)
header("location:".$fullpath."sugestt.html");
else
{
//echo "insert into biographies_new (BIOnom,BIOprenom,BIOnaissance,BIOdeces,BIOemail, BIOlang,cat_id,BIOdate,bio_details) values('$fname','$lname','$bdate','$ddate','$email','$lang',$categ_type,now(),'$bio_details')";
$add_bio=mysql_query("insert into biographies_new (BIOnom,BIOprenom,BIOnaissance,BIOdeces,BIOemail, BIOlang,cat_id,BIOdate,bio_details) values('$fname','$lname','$bdate','$ddate','$email','$lang',$categ_type,now(),'$bio_details')");
if($add_bio)
$bio_id=mysql_insert_id();
for($z=0;$z<=$mul_times;$z++)
{
$url=$_POST["url_".$z];
$sql_query=mysql_query("insert into tbl_url( biography_id, biography_url) values ('$bio_id','$url')");
echo mysql_error();
}
header("location:".$fullpath."sugest.html");
}
/*$lang=$_POST['langue'];
$url=$_POST['url'];
$categ_type=$_POST['type'];
$fname=$_POST['nom'];
$lname=$_POST['prenom'];
$bdate=$_POST['naissance'];
$ddate=$_POST['deces'];
$email=$_POST['email'];
$add_bio=mysql_query("insert into biographies(BIOnom,BIOprenom,BIOnaissance,BIOdeces,BIOurl,BIOemail, BIOlang,cat_id,BIOdate) values('$fname','$lname','$bdate','$ddate','$url','$email','$lang',$categ_type,now())");
if($add_bio)
header("location:".$fullpath."sugest.html");*/
}
?>
Biography Center
|
|
|
|
|
|
if($_GET['add']=='added')
echo "biography has been added successfully!!! | ";
if($_GET['add']=='not')
echo "biography already exist!!! | ";
?>
| |