E' quello che faccio: o almeno credo il fatto e' che quando nella pagina srvrq12.php premo il tasto successivo chiamo la srvrq16.php, che poi chiama un'altra pagina php e torno alla pagina srvrq12.php. Solo che in questi passaggi si vede il cambio di pagina (Un secondo, neanche) e le pagina sono bianche, poi torna alla pagina giusta.

Ora e' possibile non visualizzare "cambio pagina" o devo disegnare anche le pagine che fanno l'sql in modo da renderle uguali alla srvrq12.php? datemi un consiglio, Ciao

Solo che si vede il cambio di pagina


<?php
session_start();

/* Apertura connessione al database*/
include("connection.inc");

/* Reperimento variabile passata dalla lista server clienti db2_update7*/
$customerSRVCLI = $_SESSION['customerCLSCLI'];
$customerSRVDAT = $_SESSION['customerSRVDAT'];
$customerSRVNUM = $_SESSION['customerSRVNUM'];

/*$customerSRVNUM = 1244;*/

$sql = "select *
from ACSSI_DAT.srvrq00f
where srvdat < '".$customerSRVDAT."'
and srvcli = '".$customerSRVCLI."'
and srvnum < '".$customerSRVNUM."'
order by srvdat desc
";

$stmt = db2_exec($dbh, $sql, array('cursor' => DB2_SCROLLABLE));
$row = db2_fetch_array($stmt);
if (!$row=="")
{
$customerSRVDAT = $row[18];
$customerSRVORA = $row[19];
$customerSRVNUM = $row[8];
$customerSRVPRO = $row[9];
$customerSRVVER = $row[10];
$customerSRVCAS = $row[21];
$customerSRVSRN = $row[11];
$customerSRVMOD = $row[12];
$customerSRVNSP = $row[13];
$customerSRVPER = $row[17];
$customerSRVMOT = $row[20];
$customerSRVSOL = $row[22];
$customerSRVCLI = $row[7];
$_SESSION['customerSRVDAT'] = $customerSRVDAT;
$_SESSION['customerSRVORA'] = $customerSRVORA;
$_SESSION['customerSRVNUM'] = $customerSRVNUM;
$_SESSION['customerSRVPRO'] = $customerSRVPRO;
$_SESSION['customerSRVVER'] = $customerSRVVER;
$_SESSION['customerSRVCAS'] = $customerSRVCAS;
$_SESSION['customerSRVSRN'] = $customerSRVSRN;
$_SESSION['customerSRVMOD'] = $customerSRVMOD;
$_SESSION['customerSRVNSP'] = $customerSRVNSP;
$_SESSION['customerSRVPER'] = $customerSRVPER;
$_SESSION['customerSRVMOT'] = $customerSRVMOT;
$_SESSION['customerSRVSOL'] = $customerSRVSOL;
$_SESSION['customerSRVCLI'] = $customerSRVCLI;

if ($customerSRVCAS=='S'){
$customerCASO=Chiusa;
}
else{
$customerCASO=Aperta;
}
$_SESSION['customerCASO'] = $customerCASO;



header("refresh:0 url=srvrq15.php");

}

else {

header("refresh:0 url=srvrq11.php");

}

?>