Ver Mensaje Individual
  #3 (permalink)  
Antiguo 27/01/2016, 13:27
webbogado
 
Fecha de Ingreso: diciembre-2015
Ubicación: Parguay
Mensajes: 21
Antigüedad: 8 años, 4 meses
Puntos: 0
Respuesta: Problema fantasma

Ahi esta mi problema que no se donde esta pero voy a pasar los posibles segun yo

ESTE ES DE LA PAGINA DEL CARRITO

Código PHP:
<?php
@session_start();
include 
'Connections/serv.php';
if(isset(
$_GET['id'])){
    
$id $_GET['id'];

    
$sql "SELECT * FROM producto WHERE idProducto='".$id."'";
    
$query mysqli_query($conexion,$sql) or die (mysql_error());
    
$row  mysqli_fetch_array($query,MYSQL_ASSOC);
    
/**********/

?>
El if(isset($_GET['id'])){ se habre pero no se cierra, eso es por que se cierra al final de la pagina

Y ESTO ES DE PARTE DE LA PAGINA DEL LOGIN

Código PHP:
<?php
    session_start
();
    
    include 
'../Connections/serv.php';
    
$micuenta "<a class='ingresar' href='index.php'>Ingresar</a>";
    if(isset(
$_SESSION['user'])){
         if(isset(
$_GET['id'])){
    
$id $_GET['id'];
    
$url "carrito.php?id=".$id;
    
$header header(sprintf('Refresh: 2; url="'.$url.'"'));
  }else{
      echo 
'<script> window.location="panel.php"; </script>';
  }
  

    
    }
    else{
        if(isset(
$_SESSION['correoAdmi'])){
    echo 
'<script> window.location="../admin/vistas/index.php"; </script>';
    }
    else{
        
?>
LO MISMO, TODO LO QUE NO SE CIERRA ES PORQUE AL FINAL DE LA PAGINA TIENE SU ETIQUETA DE CIERRE