hai provato a stampare ALTRI campi del recordset?
..no perchè ti saresti accorto che non stamperebbe nulla..
se il tuo campo id si chiama id fai così
Codice PHP:
<?php require_once('Connections/connessione_registrazione_utente.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_Recordset_foto = "-1";
if (isset($_GET['id'])) {
$colname_Recordset_foto = $_GET['id'];
}
mysql_select_db($database_connessione_registrazione_utente, $connessione_registrazione_utente);
$query_Recordset_foto = sprintf("SELECT id, fotoFROM tabella WHERE id = %s", GetSQLValueString($colname_Recordset_foto, "text"));
$Recordset_foto = mysql_query($query_Recordset_foto, $connessione_registrazione_utente) or die(mysql_error());
$row_Recordset_foto = mysql_fetch_assoc($Recordset_foto);
$totalRows_Recordset_foto = mysql_num_rows($Recordset_foto);
?>
così dovrebbe andare.. ovviamente devi passare l'id in GET, nella forma pagina.php?id=UNNUMERO