Hola de nuevo lo he hecho en la pagina de productos:
Código PHP:
<?php require_once('conexion.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_conexion, $conexion);
$query_producto = "SELECT * FROM productos";
$producto = mysql_query($query_producto, $conexion) or die(mysql_error());
$row_producto = mysql_fetch_assoc($producto);
$totalRows_producto = mysql_num_rows($producto);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>
<body>
<table width="513">
<tr>
<td><?php echo $row_producto['nombre']; ?></td>
</tr>
<tr>
<td><?php echo $row_producto['valor']; ?></td>
</tr>
</table>
<p><a href="index.php?id=detalles&id=<?php echo$row_producto[id];?>">Detalles</a></p>
<p> </p>
</body>
</html>
<?php
mysql_free_result($producto);
?>
al dar clic en en lik me abre la ventana y aparece error. en el browser se ve esto:
http://localhost:8082/modu/index.php?id=detalles&id=1
pero el contenido no me carga
y me vota el erro predefinido : ERROR LA PAGINA NO EXISTE .
Me esta volviendo loco esto.
Gracias