ciao,
dunque io ho questo script che mi estrae i dati da una tabella:
codice:
<?php
include("../pannello/dbconnect.php");
require("../pannello/codeLighter.class.php");
$codeLighter = new codeLighter();
$query = "SELECT studi.*,....resto della query.....
WHERE titolo_studio = '" . $_REQUEST["id_studio"] . "'";
$select = mysql_query($query) or die(mysql_error());
$ultimo_studio="";
while($result = mysql_fetch_array($select)) {
if ($result["id_studio"] != $ultimo_studio) {
".$result["titolo_sommario"]."</p>
".$result["corpo_sommario"]."</p>
".$result["titolo_documento"]."</p>
". $codeLighter->convert( htmlentities($result["corpo_documento"]))."</p>
". $result["titolo_analisi"]."</p>
". $codeLighter->convert( htmlentities($result["corpo_analisi"]))."</p>
<p style=\"font-size:1.3em;font-weight:bolder\">". $result["titolo_educatori"]."</p>
". $codeLighter->convert( htmlentities($result["corpo_educatori"]))."</p>
<p style=\"font-size:1.3em;font-weight:bolder\">". $result["titolo_utenti"]."</p>
". $codeLighter->convert( htmlentities($result["corpo_utenti"]))."</p>
<p style=\"font-size:1.3em;font-weight:bolder\">". $result["titolo_approf"]."</p>";
}
echo "
". $codeLighter->convert( htmlentities($result["approfondimento"]))."</p>";
$ultimo_studio = $result["id_studio"];
}
?>
come vedete mi stampo in sequenza il valore dei campi della tabella che va a costituire il corpo completo dell'articolo.
a questo punto come posso gestire la paginazione in modo da avere quell'articolo suddiviso in più pagine?
datemi un idea...
ho cercato dappertutto, ma non ho trovato niente che gestista le paginazioni fatte in quel modo.