Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/04/2016, 18:24
Raulovic
 
Fecha de Ingreso: marzo-2016
Mensajes: 7
Antigüedad: 8 años, 1 mes
Puntos: 0
Respuesta: Problema con url amigables

Hola gracías he probado como me has dicho modificando el RewriteRule, pero no ha hecho ningún cambio.

Lo segundo es que el 1 me indica el apartado del menú donde están los vestidos de novia. del menú vestidos la subcategoría de novias es la 1, envié sólo el if de la subcategoría 1 porqué es con la que he probado sólo.
El do while lo tengo porqué en la misma página aparecen varios listados de vestidos. Te envio el código completo de la página porque me explico muy mal y seguro que viéndolo lo vas a entender mejor :D




<?php require_once('Connections/conexionwebdeprueba.php'); ?>
<?php
if (!function_exists("GetSQLValueString"))
{
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

$varVestidos_DatosVestidos = "0";
if (isset($_GET["vestidos"]))
{
$varVestidos_DatosVestidos = $_GET["vestidos"];
}
mysql_select_db($database_conexionwebdeprueba, $conexionwebdeprueba);
$query_DatosVestidos = sprintf("SELECT * FROM tblvestidos WHERE tblvestidos.intSeccion = %s ORDER BY tblvestidos.intOrden ASC", GetSQLValueString($varVestidos_DatosVestidos, "int"));
$DatosVestidos = mysql_query($query_DatosVestidos, $conexionwebdeprueba) or die(mysql_error());
$row_DatosVestidos = mysql_fetch_assoc($DatosVestidos);
$totalRows_DatosVestidos = mysql_num_rows($DatosVestidos);
?>


<!-- InstanceBegin template="/Templates/plantillabase.dwt.php" codeOutsideHTMLIsLocked="false" --><!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang=""> <!--<![endif]-->

<head>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- InstanceBeginEditable name="doctitle" -->


<?php

if ($_GET["vestidos"] == 1) {echo "<title>Vestidos de novia | Corte sirena, corte princesa, etc...</title>";}

if ($_GET["vestidos"] == 2) {echo "<title>Vestidos de fiesta | Cortos, largos, asim&eacute;trico, etc...</title>";}

if ($_GET["vestidos"] == 3) {echo "<title>Vestidos de quinceañera | Corte princesa, halter, con encajes, etc...</title>";}

if ($_GET["vestidos"] == 4) {echo "<title>Vestidos de promoción | Con escote, modernos, con aberturas, etc...</title>";}

if ($_GET["vestidos"] == 5) {echo "<title>Vestidos de noche | Atrevidos, elegantes, minivestidos, etc...</title>";}

if ($_GET["vestidos"] == 6) {echo "<title>Vestidos de graduación | A la moda, marcando tendencias, etc...</title>";}

?>

<script src="js/jquery-1.6.1.min.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="css/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" />
<script src="js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>


<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<link href="css/estiloprincipal.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/menu.css" type="text/css" />
<link rel="stylesheet" href="css/main.css">
<link href='https://fonts.googleapis.com/css?family=Noto+Serif:400,700&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Roboto+Condensed:400,300italic&subset=l atin,latin-ext' rel='stylesheet' type='text/css'>

<script src="js/vendor/modernizr-2.8.3-respond-1.4.2.min.js"></script>

<?php include("includes/google.php"); ?>
</head>

<body>

<div class="header-container">
<header class="wrapper clearfix">
<?php include("includes/cabecera.php"); ?>
<nav>
<?php include("includes/menu.php"); ?>
</nav>
<!-- InstanceBeginEditable name="EditRegion5" --><?php include("includes/publicidadl.php"); ?><!-- InstanceEndEditable --> </header>
</div>

<div class="main-container">

<div class="sidebar1"><!-- InstanceBeginEditable name="Contenidoizquierda" -->
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto({theme: 'dark_rounded'});
});
</script>


<?php
if ($_GET["vestidos"] == 1) {echo "<h1>Vestidos de novia</h1>";}
if ($_GET["vestidos"] == 2) {echo "<h1>Vestidos de fiesta</h1>";}
if ($_GET["vestidos"] == 3) {echo "<h1>Vestidos de quinceañera</h1>";}
if ($_GET["vestidos"] == 4) {echo "<h1>Vestidos de promoción</h1>";}
if ($_GET["vestidos"] == 5) {echo "<h1>Vestidos de noche</h1>";}
if ($_GET["vestidos"] == 6) {echo "<h1>Vestidos de graduación</h1>";}
?>

<p>¿Buscan vestidos de novia, vestidos de fiesta, vestidos de noche o vestidos de 15 años? De un paseo por esta sección y disfrute.</p>



<?php do { ?>
<div class="portfolio1"><a href="images/vestidos/<?php echo $row_DatosVestidos['strImagen']; ?>" rel="prettyPhoto[temporadas_galeria]"><img src="images/vestidos/<?php echo $row_DatosVestidos['strImagen']; ?>" width="200" height="250" alt="<?php echo utf8_encode ($row_DatosVestidos['strTitulo']); ?>" /><br />
<strong><?php echo utf8_encode ($row_DatosVestidos['strTitulo']); ?></strong>
<br />
<a href="vestidos_informacion.php?idweb=<?php echo $row_DatosVestidos['intContador']; ?>"> Ver secci&oacute;n</a></div>
<?php } while ($row_DatosVestidos = mysql_fetch_assoc($DatosVestidos)); ?>

<!-- InstanceEndEditable -->
<!-- end .sidebar1 --></div>
<div class="content"><!-- InstanceBeginEditable name="Partederecha" -->
<?php include("includes/redes_sociales.php"); ?>
<?php include("includes/botones_redes.php"); ?>
<?php include("includes/publicidad_chica.php"); ?>
<?php include("includes/publicidad_uno.php"); ?>
<!-- end .content -->
<!-- InstanceEndEditable --></div>
<div class="footer">
<?php include("includes/pie.php"); ?></div>
<!-- end .container --></div>
</body>
<!-- InstanceEnd --></html>
<?php
mysql_free_result($DatosVestidos);
?>