206 || $yy1 > 114) { if ($xx1 > $yy1) { $chicopor1 = $yy1*114; $division1 = $chicopor1/$xx1; $yy1= $division1; $xx1= 206; } else { $chicopor1 = $xx1*206; $division1 = $chicopor1/$yy1; $xx1= $division1; $yy1= 114; } } else { $yy1= $yy1; $xx1= $xx1; } return $xx1; } function yesg($xx1,$yy1) { if ($xx1 > 206 || $yy1 > 114) { if ($xx1 > $yy1) { $chicopor1 = $yy1*114; $division1 = $chicopor1/$xx1; $yy1= $division1; $xx1= 206; } else { $chicopor1 = $xx1*206; $division1 = $chicopor1/$yy1; $xx1= $division1; $yy1= 114; } } else { $yy1= $yy1; $xx1= $xx1; } return $yy1; } function conectar() { $base_de_datos = "villas"; $db_usuario = "villas"; $db_password = "680107"; //$base_de_datos = "villas"; //$db_usuario = "root"; //$db_password = ""; //if (!($link = mysql_connect("localhost", $db_usuario, $db_password))) if (!($link = mysql_connect("localhost", $db_usuario, $db_password))) { echo "Error conectando a la base de datos."; exit(); } if (!mysql_select_db($base_de_datos, $link)) { echo "Error seleccionando la base de datos."; exit(); } return $link; } function obtenervilla ($vreg) { $sql = "SELECT * FROM villa WHERE top_villa = '1' LIMIT ".$vreg.", 1"; $resultados = mysql_query($sql); $corri=mysql_fetch_array($resultados); $clave= $corri["id_villa"]; $nombre= $corri["nombre"]; mysql_free_result($resultados); } $db = conectar(); $numero = rand(50,100); $nombre = ""; $sqlte = "SELECT * FROM villa WHERE top_villa = '1' "; $resultadoi= mysql_query($sqlte); $total_registros = mysql_num_rows($resultadoi); //echo $total_registros; $numero1 = rand(0,$total_registros - 1); $hayvt= "1"; if ($total_registros >= "3" ) { do { $numero2 = rand(0,$total_registros - 1); if ($numero2 <> $numero1) { break; } else { $numero2 = rand(0,$total_registros - 1); } } while (0); $numero3 = rand(0,$total_registros - 1); do { if ($numero3 <> $numero1 && $numero3 <> $numero2 ) { break; } else { $numero3 = rand(0,$total_registros - 1); } } while (0); // primera villa $sql = "SELECT * FROM villa WHERE top_villa = '1' LIMIT ".$numero1.", 1"; $resultados = mysql_query($sql); $corri=mysql_fetch_array($resultados); $nombre1= $corri["nombre"]; $tarifaxn1= $corri["tarifaxn"]; $tarifae1= $corri["tarifae"]; $id1= $corri["id"]; if (trim($corri["imagen1"]) <> ".") { $imagen1 = "fotos/".$corri["imagen1"]; $h = $corri["iw1"]; $w = $corri["ih1"]; } else { $imagen1="images/sinfoto.gif"; $w= "154"; $h= "212"; } $h1= yesg($w,$h); $w1= equisg($w,$h); $sql = "SELECT * FROM villa WHERE top_villa = '1' LIMIT ".$numero2.", 1"; $resultados = mysql_query($sql); $corri=mysql_fetch_array($resultados); $nombre2= $corri["nombre"]; $tarifaxn2= $corri["tarifaxn"]; $tarifae2= $corri["tarifae"]; $id2= $corri["id"]; if (trim($corri["imagen1"]) <> ".") { $imagen2 = "fotos/".$corri["imagen1"]; $h = $corri["iw1"]; $w = $corri["ih1"]; } else { $imagen2="images/sinfoto.gif"; $w= "154"; $h= "212"; } $h2= yesg($w,$h); $w2= equisg($w,$h); $sql = "SELECT * FROM villa WHERE top_villa = '1' LIMIT ".$numero3.", 1"; $resultados = mysql_query($sql); $corri=mysql_fetch_array($resultados); $nombre3= $corri["nombre"]; $tarifaxn3= $corri["tarifaxn"]; $tarifae3= $corri["tarifae"]; $id3= $corri["id"]; if (trim($corri["imagen1"]) <> ".") { $imagen3 = "fotos/".$corri["imagen1"]; $h = $corri["iw1"]; $w = $corri["ih1"]; } else { $imagen3="images/sinfoto.gif"; $w= "154"; $h= "212"; } $h3= yesg($w,$h); $w3= equisg($w,$h); mysql_free_result($resultados); } else { $hayvt= "0"; } ?> Acapulco Villas Pacific
Villa
Condo
Luxury
Standard
Bedrooms
Occupancy
 


Acapulco Villas Pacific boasts an exclusive collection of over 100 Villas and condominiums. Please browse through our collection of spectacular villas listed below, and if you do not see one you absolutely love, don’t worry!… Just complete the Reservation Request form and let our Villa Specialists send you information on newly-acquired properties which are not yet featured on our website.


“The Luxury Villa and Condo Rentals Expert”

 

 

 

 

 

 

 

 

 


 

 

 

 

 

 

 

 

Tel:+52 (11) 55 1500 9100 Ext. 1100 | Cell Phone: +52 (11) 55 4803 2796 
  Copyright © 2010 Acapulco Villas Pacific. All Rights Reserved.