david пре 12 година
родитељ
комит
dbcebea6d2
4 измењених фајлова са 9 додато и 7 уклоњено
  1. 1 0
      .htaccess
  2. 4 3
      db.php
  3. 2 2
      productos.php
  4. 2 2
      vermas.php

+ 1 - 0
.htaccess

@@ -0,0 +1 @@
+AddDefaultCharset UTF-8

+ 4 - 3
db.php

@@ -1,9 +1,10 @@
 <?php
-$db = new mysqli('localhost', 'root', 'howdoiturnthison', 'EBA');
+$db = new mysqli('davidventura.com.ar', 'root', 'howdoiturnthison', 'EBA');
 
 if($db->connect_errno > 0){
     die('Unable to connect to database [' . $db->connect_error . ']');
 }
-$db->query("SET NAMES 'utf8'");
+#$db->query("SET NAMES 'utf8'");
+#en ELSERVER es necesario que este comentado
 
-?>
+?>

+ 2 - 2
productos.php

@@ -1,5 +1,5 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<!doctype html>
+<?php header('Content-Type: text/html; charset=utf-8'); ?> 
+<!DOCTYPE html>
 <head>
 
     <title>ESPECIFICOS Buenos Aires</title>

+ 2 - 2
vermas.php

@@ -19,14 +19,14 @@ echo "<div id = 'texto'>
             <img src='$imagen'></img>
         </div>
         <div class='left descripcion-mas'>
-		<h5 style='color:#2B4C5F;'>Descripción</h5><br/>
+		<h5 style='color:#2B4C5F;'>Descripci&oacute;n</h5><br/>
 		$descripcion<br/><br/>";
 		if($activos != ''){
 		echo "<h5 style='color:#2B4C5F;'>Activos</h5><br/>
 				$activos<br/><br/>";
 		}
 		if($aplicacion != ''){
-		echo"<h5 style='color:#2B4C5F;'>Aplicación</h5><br/>
+		echo"<h5 style='color:#2B4C5F;'>Aplicaci&oacute;n</h5><br/>
 				$aplicacion<br/><br/>
 		</div>		";