se faccio echo $posizione; il valore é mostrato correttamente....
Codice PHP:
$initStartLimit = 0;
$limitPerPage = 3;
$startLimit = $_REQUEST['startLimit'];
$numberOfRows = $_REQUEST['rows'];
$sortBy = "nf_num_desko";
$sortOrder = "ASC";
if ($startLimit=="")
{
$startLimit = $initStartLimit;
}
if ($numberOfRows=="")
{
$numberOfRows = $limitPerPage;
}
if ($sortOrder=="")
{
$sortOrder = "DESC";
}
if ($sortOrder == "DESC") { $newSortOrder = "ASC"; } else { $newSortOrder = "DESC"; }
$limitQuery = " LIMIT ".$startLimit.",".$numberOfRows;
$nextStartLimit = $startLimit + $limitPerPage;
$previousStartLimit = $startLimit - $limitPerPage;
if ($sortBy!="")
{
$orderByQuery = " ORDER BY " .$sortBy." ".$sortOrder;
}
E questo:
Codice PHP:
// Auditoria Function
$nome = $_SESSION['UsuarioNome'];
$posizione = $previousStartLimit + $limitPerPage;
echo $poszione;
if(isset($_REQUEST['AuditNotaId']))
{
$auditoria_nota_id = mysql_real_escape_string($_REQUEST['AuditoriaNotaId']);
mysql_query("UPDATE nfsaida SET nfsaida_revisao='$nome' WHERE nfsaida_id=".$auditoria_nota_id, $con);
header("Location: Audit.php?startLimit=$posizione");