si pues... he revisado un poco.. y d verdad ni idea.. fijate en esto...
esta en la pagina donde esta incluida la ficha...q no es mas q una galeria de imagenes
Código PHP:
<?php require_once('Connections/alba.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;
}
}
$colname_Recordset1 = "-1";
if (isset($_GET['id'])) {
$colname_Recordset1 = $_GET['id'];
}
mysql_select_db($database_alba, $alba);
$query_Recordset1 = sprintf("SELECT * FROM productos WHERE id = %s", GetSQLValueString($colname_Recordset1, "int"));
$Recordset1 = mysql_query($query_Recordset1, $alba) or die(mysql_error("Error fatal"));
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {
font-size: 11px;
font-family: Arial, Helvetica, sans-serif;
}
-->
</style>
<link href="css/estilo.css" rel="stylesheet" type="text/css" />
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="2">
<tr>
<td width="29%" rowspan="2"><img src="logo/<?php //aqui es donde se corta echo $row_Recordset1['logo']; ?>" border="0" /></td>
<td width="29%"> </td>
<td width="42%" rowspan="3"><table width="260" border="0" align="center" cellpadding="0" cellspacing="2">
<tr>
<td><?php include('ficha.php'); ?></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="95%" border="0" align="center" cellpadding="0" cellspacing="2">
<tr>
<td width="11%"><img src="http://www.forosdelweb.com/images/flecha.gif" width="17" height="15" /></td>
<td width="89%"><span class="style1">Volver a listado</span></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="2">
<tr>
<td bgcolor="#E8E7C1"><p> </p>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="2">
<tr>
<td class="descPRODUCTOS"><div align="justify"><?php echo $row_Recordset1['descripcion']; ?></div></td>
</tr>
</table>
<p> </p></td>
</tr>
</table></td>
</tr>
</table>
<?php
mysql_free_result($Recordset1);
?>