24/03/2008, 14:34
|
| | | Fecha de Ingreso: agosto-2007 Ubicación: Quito - Ecuador
Mensajes: 1.720
Antigüedad: 16 años, 8 meses Puntos: 28 | |
Re: Parse error emmm bueno...
ya lo hice y mira esto Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\wamp\www\Flamuko\listado_productos.php on line 99 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"> </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%"> </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> </td> <td width="8%"> </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> <tr> <td> </td> <td> </td> <td colspan="2" class="descPROD"><a href="ficha_productos.php?id=<?php echo $prod['id']; ?>" class="descPROD"><?php echo $prod['nombre']; ?></a></td> </tr> </table> </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"> </td> </tr> <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?> </table> <p class="tituloQUIENES"> <?php mysql_free_result($Recordset1); ?>
__________________ Diseño gráfico, Web, imagen corporativa, publicidad ... |