$my=str_replace('www.','',$_SERVER['HTTP_HOST']); //$my="miremate.info"; $domain="http://".$my; //if ($_GET['nomob']!="no") include("detect.php"); $rid=$_GET['r']; //$verbi=mysql_connect("localhost", "remate_remate", "olmedo233") or die ("Keine Verbindung moeglich rema3"); //mysql_set_charset('utf8', $verbi); //mysql_select_db("remate_remate") or die ("Die Datenbank existiert nicht, dbconnect"); $verbi=mysqli_connect("localhost", "remate_remate", "olmedo233","remate_remate"); include("/home/remate/public_html/all/text.php"); $sql = 'SELECT * FROM `remat` WHERE `rid` LIKE \''.$rid.'\''; //echo $sql; $res = mysqli_query($verbi,$sql) OR die(mysqli_error()); while($row = mysqli_fetch_object($res)) { $data=$row->dat; $hora=$row->hora; $title=$row->titel; $marca=$row->marca; $distrito=$row->distrito; $canton=$row->canton; $juzgado=$row->juzgado; $articulo=$row->articulo ; $provincia=$row->provincia; $mone=$row->mone ; $precio=$row->precio; $folio=$row->folio; $area=$row->area; $pubdat=$row->pubdat; $origen=$row->origen; $text=$row->text; if ($articulo == "prop" ) { if (empty($canton)){ $ptit = "Remate de Propiedad "; } else { $ptit = "Remate de Propiedad en ".$canton.", ".$distrito; } } if ($articulo == "vehi" ){ if (empty($marca)){ $ptit = "Remate de Vehículo "; } else { $ptit = "Remate de Vehículo marca ".$marca; } } if ($articulo == "otro" ) $ptit = "Remate de otro Artículo"; } if (!isset($data)) { $loca="Location: http://miremate.info"; //header("$loca"); exit; } ?>
|