Hola Efex,
ante todo muchas gracias por responder y tienes toda la razón: me expliqué muy poquito.
Bueno aquí te envío el código, como verás esta página ya viene precedida de otra y en principio sólo he puesto las primeras seis ciudades, ya pondré las demás.
Eso si, si tienes alguna idea mejor... ni que decir tiene que acepto sugerencias, he hecho unos tutoriales y llevo unos tres meses y a ratos con esto de programar.
Gracias otra vez.
Saludos.
<?php require_once('Connections/conexioncreacion.php'); ?>
<?php
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
}
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;
}
}
$varAnno_DatosDatosMarcas = "0";
if (isset($_GET["anno"])) { $varAnno_DatosMarcas = $_GET["anno"];
}
$query_DatosMarcas = sprintf("SELECT * FROM tblmarcas WHERE tblmarcas.strmodelo = %s ORDER BY tblmarcas.intOrden ASC", GetSQLValueString
($varAnno_DatosDatosMarcas, "text"));
?>
<!DOCTYPE html>
<html class="no-js"><!-- InstanceBegin template="/Templates/plantillabase.dwt.php" codeOutsideHTMLIsLocked="false" --> <!--<![endif]--> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <!-- InstanceBeginEditable name="doctitle" -->
<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/style.css"> <link href='http://fonts.googleapis.com/css?family=Share:400,700&subset=latin,latin-ext' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Dosis:400,300,700' rel='stylesheet' type='text/css'>
<script src="js/libs/modernizr-2.5.3-respond-1.1.0.min.js"></script>
<?php include("includes/google.php"); ?>
<div class="header-container"> <header class="wrapper clearfix">
<?php include("includes/cabecera.php"); ?>
<nav>
<?php include("includes/menu.php"); ?>
</nav>
<!-- InstanceBeginEditable name="EditRegion5" --><!-- InstanceEndEditable --> </header>
<div class="main-container">
<div class="sidebar1"><!-- InstanceBeginEditable name="ContenidoIzq" --> <script type="text/javascript" charset="utf-8"> $(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto({theme: 'light_rounded'});
});
<h1>Elige tu
<?php echo $_GET["anno"]; ?></h1>
<p>A continuaci
ón, presentamos una lista de los mejores coches.
</p>
<?php do { ?>
<div class="ofertas1"><a href="images/marcas/<?php echo $row_DatosMarcas['strImagen']; ?>" rel="prettyPhoto[marcas_galeria]">
<img src="images/marcas/<?php echo $row_DatosMarcas['strImagen']; ?>" width="200" alt="
<?php echo $row_DatosMarcas['strTitulo']; ?>" />
</a><br /><?php echo $row_DatosMarcas['strTitulo']; ?> <a href="<?php echo $row_DatosMarcas['strLink']; ?>" target="_blank">Visitar Web
</a> -
<a href="marcas_informacion.php?idweb=<?php echo $row_DatosMarcas['intContador']; ?>">Ver informaci
ón
</a></div> <?php } while ($row_DatosMarcas = mysql_fetch_assoc($DatosMarcas)); ?>
<!-- InstanceEndEditable --><!-- end .sidebar1 --></div> <!-- InstanceBeginEditable name="ParteDerecha" -->
<h1>Poblaci
ón
</h1> <p>Seleccione la poblaci
ón donde quiere ver su coche.
</p>
<table width="300" align="left" cellpadding="0">
<th width="100" height="25"> <a href="marcas_poblacion.php?anno=">Alaquas
</a></th> <th width="100"><a href="marcas_poblacion.php?anno=Albal<?php echo $row_DatosMarcas['strModelo']; ?>">Albal
</a></th> <th width="100"><a href="marcas_poblacion.php?ciudad=Alfafar">Alfafar
</a></th> <th width="100"><a href="marcas_poblacion.php?ciudad=Anna">Anna
</a></th> <th width="100"><a href="marcas_poblacion.php?ciudad=Benetusser">Benetusser
</a></th> <th width="100"><a href="marcas_poblacion.php?ciudad=Catarroja">Catarroja
</a></th> <!-- end .content -->
<!-- InstanceEndEditable -->
<?php include("includes/pie.php"); ?></div> <!-- end .container --></div> <!-- InstanceEnd --></html> <?php
mysql_free_result($DatosMarcas);
?>
NOTA MOD: USAR GESHI PARA CODIGOS [code=html4strict][/code], [code=php][/code]. Existe boton modificar para modificar posts .