{"id":1864,"date":"2013-06-27T15:05:18","date_gmt":"2013-06-27T15:05:18","guid":{"rendered":"http:\/\/www.giff.mx\/?page_id=1864"},"modified":"2018-07-12T02:37:22","modified_gmt":"2018-07-12T02:37:22","slug":"stores-guanajuato-capital","status":"publish","type":"page","link":"https:\/\/giff.mx\/en\/stores-guanajuato-capital\/","title":{"rendered":"Stores Guanajuato Capital"},"content":{"rendered":"<div style=\"max-width: 960px; margin-left: auto; margin-right: auto;\">\n<?\n$host = \"localhost\"; \/\/ el host de la base de datos\n  $user = \"eddiered_eventos\";     \/\/ usuario de la base de datos\n  $pass = 'Giff2013!';        \/\/ contrase?a de la base de datos\n $bbdd = \"eddiered_eventos\"; \nif(isset($_GET['id'])){\n $link=mysql_connect($host,$user,$pass) or die(\"resultado=\".urlencode(mysql_error()));\n mysql_select_db($bbdd,$link) or die(\"resultado=\".urlencode(mysql_error()));\n $result=mysql_query(\"select * from hoteles where id=\".$_GET['id'], $link);\n  $row=mysql_fetch_row($result);  \n?><\/p>\n<table align=\"center\" style=\"width:900px; margin-left:auto; margin-right:auto;\" >\n<tr>\n<td>\n<h3><? \/\/echo str_replace(\"<br \/>&#8220;, &#8221; &#8220;,$row[1]); ?><\/h3>\n<p>     <? if($row[1]!=\"n_a\"){ ?><img decoding=\"async\" src=\"http:\/\/www.giff.mx\/subirhoteles\/imgshoteles\/&lt;? echo htmlentities($row[2]); ?&gt;&rdquo; \/&gt;&lt;? } ?&gt;&lt;\/td&gt;&lt;td style=\"vertical-align: top; text-align:justify; padding-top:30px; padding:10px;\" align=\"justify\">\n<p><? echo str_replace(\"<br \/>&#8220;, &#8221; &#8220;,$row[3]); ?><\/p>\n<p><? \n$y=0;\n$t=0;\n$d= str_replace(\"\n\", \"|\",$row[4]);\nfor($i=0; $i<=strlen($d); $i++){\n  if(substr($d,$i,1)==\"|\" || strlen($d)==$i){\n   $t++;\nif(strlen($d)==$i){\n$c=substr($d,$y,($i-$y));\n}else{\n$c=substr($d,$y,($i-6-$y));\n}\n   ?> <a href=\"http:\/\/&lt;? echo $c; ?&gt;&rdquo; target=&rdquo;_blank&rdquo;; &gt;&lt;? echo $c; ?&gt;&lt;\/a&gt;&lt;br \/&gt;&lt;?   $y=$i+1;  }} ?&gt;&lt;\/td&gt;&lt;td style=\"vertical-align: bottom;\"><img decoding=\"async\" src=\"http:\/\/www.giff.mx\/subirhoteles\/imgshoteles\/&lt;? echo htmlentities($row[5]); ?&gt;&rdquo;  style=&rdquo; height:230px;&rdquo; \/&gt;&lt;\/td&gt;&lt;\/tr&gt;&lt;\/table&gt;&lt;p&gt; &lt;?} $link4=mysql_connect($host,$user,$pass) or die(&quot;resultado=&quot;.urlencode(mysql_error()));  mysql_select_db($bbdd,$link4) or die(&quot;resultado=&quot;.urlencode(mysql_error()));  $result4=mysql_query(&quot;select * from hoteles where ciudad=&#039;1&#039; order by id &quot;, $link4);      while($row4=mysql_fetch_row($result4)){       ?&gt;&lt;\/p&gt;&lt;div style=\" width:220px; height:250px; float:left; padding:5px; text-align:center;\"><a","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1864","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/giff.mx\/en\/wp-json\/wp\/v2\/pages\/1864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/giff.mx\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/giff.mx\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/giff.mx\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/giff.mx\/en\/wp-json\/wp\/v2\/comments?post=1864"}],"version-history":[{"count":2,"href":"https:\/\/giff.mx\/en\/wp-json\/wp\/v2\/pages\/1864\/revisions"}],"predecessor-version":[{"id":19380,"href":"https:\/\/giff.mx\/en\/wp-json\/wp\/v2\/pages\/1864\/revisions\/19380"}],"wp:attachment":[{"href":"https:\/\/giff.mx\/en\/wp-json\/wp\/v2\/media?parent=1864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}