include_once("db.php");
$sql="select * from dlux_producto where id='".$_REQUEST['dlx']."'";
$resulta = mysqli_query($conn,$sql) or die ("Could not query .. ".$sql);
$row = mysqli_fetch_object($resulta);
$sqli="select * from web_images where id_con=".$_REQUEST['dlx']." and tipo <>5 order by tipo desc";
$resulti=mysqli_query($conn,$sqli) or die ("Could not query images".$sqli);
$rowi = mysqli_fetch_object($resulti);
if (mysqli_affected_rows($conn) > 0){
$img=$rowi->imageurl;
}else{
$img="no_image_big.png";
}
?>
dLux - Equipos y accesorios de video-vigilancia--
include('db.php');?>
Dlux-
$sqlf="select * from web_images where id_con=".$row->id." and tipo=5 order by tipo desc";
$resultf=mysqli_query($conn,$sqlf) or die ("Could not query images");
$rowf = mysqli_fetch_object($resultf);
if (mysqli_affected_rows($conn) > 0){
$img="http://www.dluxsecurity.com/uploads/".$rowf->imageurl;
$trg="_blank";
}else{
$img="#";
$trg="";
}
?>