";
echo "
Documents |
";
$i=0;
while($row = @mysql_fetch_array($result)) {
$dada = $i%2;
echo "
$row[titol_espaisocis] |
";
$i ++;
} //fi while
} // fi if numregistres
mysql_free_result($result);
echo "";
// PAGINACIÓ //
if($numregistres > $registres) {
echo "
";
if(($pagina - 1) > 0) {
echo "« Anterior ";
}
for ($i=1; $i<=$total_pagines; $i++){
if ($pagina == $i) {
echo "".$pagina." ";
} else {
echo "- $i - ";
}
}
if(($pagina + 1)<=$total_pagines) {
echo " Següent »";
}
echo "";
}
?>