Scusami...
ho appena letto meglio
$address = $row_Recordset1['mailente'];
Un'altra domanda a questo punto: a livello di sintassi, la stringa sopra con cui definisci la variabile come funziona? Ad es. "Recordset1" è la tabella e "mailente" il campo? La mia tabella si chiama "indirizzi" e i tre campi li ho scritti nel post precedente, quindi nel mio caso la stringa dovrebbe essere una cosa del genere (correggetemi se sbaglio):
$address = $row_indirizzi['EmailAddress'];
Un'altra cosa, ma questa parte qua del codice a cosa serve?
Codice PHP:
<?php require_once('Connections/testmp.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;
}
}
$maxRows_Recordset1 = 10;
$pageNum_Recordset1 = 0;
if (isset($_GET['pageNum_Recordset1'])) {
$pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
}
$startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
Grazie ancora.
AndreaP