'; if ($_GET["s"] == "carro") { $_SESSION['URL'] = "carro.php"; } function Contenido(){ $id = $_GET["id"]; include('conexion-web.php'); $sql = "SELECT * FROM productos WHERE id = '$id' AND oculto = 0"; $res = mysql_query($sql); $row = mysql_fetch_array($res); $sql2 = 'SELECT * FROM categorias WHERE id = '.$row["rela-cat"].' AND oculto = 0'; $res2 = mysql_query($sql2) or die ($sql2 .mysql_error() ); $row2 = mysql_fetch_array($res2); $Categoria = strtoupper($row2[nombre]); $sql3 = 'SELECT * FROM subcategorias WHERE id = '.$row["rela-subcat"].' AND oculto = 0'; $res3 = mysql_query($sql3) or die ($sql3 .mysql_error() ); $row3 = mysql_fetch_array($res3); $SubCategoria = strtoupper($row3[nombre]); ?>
'.texto2($row['descripcion']).'
'; } ?>CÓDIGO: echo $row["codigo"]; ?>
if ($_SESSION['Sesion_Cliente'] == 1) { echo 'PRECIO: $ '.number_format($row["precio"],2).' ARS
'; } if (!empty($row["archivo"])) { echo ''; } if ($_SESSION['Sesion_Cliente'] == 1) { ?>