Tema: Parse error
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/03/2008, 14:05
Avatar de T4ke0veR
T4ke0veR
 
Fecha de Ingreso: agosto-2007
Ubicación: Quito - Ecuador
Mensajes: 1.720
Antigüedad: 16 años, 8 meses
Puntos: 28
Pregunta Parse error

Saludos tengo este problema!!!
a partir de agregar una declaracion nueva me salio este error

Parse error: syntax error, unexpected $end in C:\wamp\www\Flamuko\listado_productos.php on line 109 <- q es la ultima linea


pero fijense!!!
Código PHP:
<?php require_once('Connections/flamuko.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function 
GetSQLValueString($theValue$theType$theDefinedValue ""$theNotDefinedValue ""
{
  
$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;
}
}

mysql_select_db($database_flamuko$flamuko);
$query_Recordset1 "SELECT * FROM categoria";
$Recordset1 mysql_query($query_Recordset1$flamuko) or die(mysql_error());
$row_Recordset1 mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 mysql_num_rows($Recordset1);
?>
<link href="css/estilos.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
a {
    font-family: Verdana, Arial, Helvetica, sans-serif;
}
a:link {
    text-decoration: none;
}
a:visited {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
a:active {
    text-decoration: none;
}
body {
    margin-left: 12px;
}
-->
</style>

  <p class="tituloPROD">&nbsp;</p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  
  <tr>
    <td scope="col"><?php do { ?>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="5%">&nbsp;</td>
      <td colspan="2" class="tituloPROD"><?php 

      
      
echo $row_Recordset1['nombre']; ?>        </td>
    </tr>
   <?php mysql_select_db($database_flamuko$flamuko);
        
$query_Recordset2 "SELECT * FROM subcategoria WHERE id_cat =".$row_Recordset1['id'];
        
$Recordset2 mysql_query($query_Recordset2$flamuko) or die(mysql_error());
        
        
$totalRows_Recordset2 mysql_num_rows($Recordset2);
        
        while(
$prod=mysql_fetch_assoc($Recordset2)){?>

        
        <tr>
            <td>&nbsp;</td>
            <td width="8%">&nbsp;</td>
          <td width="87%" colspan="2" class="descPROD">
        <a href="ficha_productos.php?id=<?php echo $prod['id']; ?>" class="descPROD"><?php echo $prod['nombre']; }?>  </a></td>    
    </tr>       
  </table>
  <?php } while ($row_Recordset1 mysql_fetch_assoc($Recordset1)); ?>&nbsp;</td>
  </tr>
  <?php mysql_select_db($database_flamuko$flamuko);
        
$query_Recordset3 "SELECT * FROM linea WHERE id_sub =".$row_Recordset2['id'];
        
$Recordset3 mysql_query($query_Recordset3$flamuko) or die(mysql_error());
        
        
$totalRows_Recordset3 mysql_num_rows($Recordset3);
        
        while(
$sub=mysql_fetch_assoc($Recordset3)){?>
  <tr>
    <td scope="col">&nbsp;</td>
  </tr>
</table>
  

  <p class="tituloQUIENES">
    <?php
mysql_free_result
($Recordset1);
?>
si le quito esto no da error
Código PHP:
  <?php mysql_select_db($database_flamuko$flamuko);
        
$query_Recordset3 "SELECT * FROM linea WHERE id_sub =".$row_Recordset2['id'];
        
$Recordset3 mysql_query($query_Recordset3$flamuko) or die(mysql_error());
        
        
$totalRows_Recordset3 mysql_num_rows($Recordset3);
        
        while(
$sub=mysql_fetch_assoc($Recordset3)){?>
Alguien ve el error???
Gracias
__________________
Diseño gráfico, Web, imagen corporativa, publicidad ...

Última edición por T4ke0veR; 24/03/2008 a las 14:11 Razón: faltaba info