if(isset($_GET['id']) && ctype_digit($_GET['id']) && strlen($_GET['id'])<="13" && strlen($_GET['id'])>="0"){ $id=filter_var($_GET['id'], FILTER_VALIDATE_INT); include($_SERVER['DOCUMENT_ROOT']."/test/databases/new/db_eyar.php"); include($_SERVER['DOCUMENT_ROOT']."/test/databases/new/db_vekirin.php"); $query=("SELECT * FROM products WHERE status='1' AND id=".$id.""); $result = mysqli_query($conn,$query) or die(mysqli_error()); $num_rows = mysqli_num_rows($result); if($num_rows=='1'){ $data = mysqli_fetch_object($result); $id=$data->id; $tr=$data->tr; $tring=$data->tring; $trdesc=$data->trdesc; $category=$data->category; $status=$data->status; $tring=stripslashes($tring); $trdesc=stripslashes($trdesc); } function productscats($category){ include($_SERVER['DOCUMENT_ROOT']."/test/databases/new/db_eyar.php"); include($_SERVER['DOCUMENT_ROOT']."/test/databases/new/db_vekirin.php"); $query=("SELECT * FROM productscats WHERE cid='".$category."'"); $result = mysqli_query($conn,$query); $num_rows = mysqli_num_rows($result); if($num_rows==true){ $data = mysqli_fetch_object($result); $tr=$data->tr; $tr=stripslashes($tr); } return $tr; } $titre=productscats($category); if($titre){ $titrecat=" - "; }else{ $titrecat=""; } ?> include($_SERVER['DOCUMENT_ROOT']."/x_html.php");?>
".$query."
"; $result = mysqli_query($conn,$query); $num_rows = mysqli_num_rows($result); if($num_rows==true){ $data = mysqli_fetch_object($result); $tr=$data->tr; } return linkniviso($tr); } echo"