Tema: Parse error
Ver Mensaje Individual
  #14 (permalink)  
Antiguo 25/03/2008, 07:35
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
Re: Parse error

sigue sin substraer la informacion... ya deberia de hacerlo =/
lo q no entiendo es pq si la coloco de la misma manera q la declaracion del recordset2 no me lo toma tampoco!!!...
deberia estar imprimiendo!!!

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"><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">
        <?php echo $prod['nombre']; }?></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_array($Recordset3)){?>  
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td colspan="2" class="descPROD"><?php echo $sub['nombre']; }?></td>
        </tr>       
  </table>
 &nbsp;</td>
  </tr>

  <tr>
    <td scope="col">&nbsp;</td>
  </tr>
</table>
  

  <p class="tituloQUIENES">
    <?php
mysql_free_result
($Recordset1);
?>
codigo completo!!!
__________________
Diseño gráfico, Web, imagen corporativa, publicidad ...