Carte de oaspeti

$limit) { do { $paging++; $limited = $limite+$limit; $limited2 = $limited; if ($limited > $listings) $limited2 = $listings; if ($limite <= ($limiter + ($limit * 3)) && $limite >= ($limiter - ($limit * 3))) { if ($limiter == $limite || ($limite == 0 && $limiter == NULL)) { $lecho .= "". $paging." \n"; } else { $lecho .= "".$paging ." \n"; } } $num = $num-$limit; $limite = $limite+$limit; } while ($num > 0); $control = $listings; do { $control = $control - $limit; } while ($control > $limit); if ($limiter / $limit > 4) { $secho = "[1" .( $limit +1) ."] ... \n"; } if (round($listings / $limit) - ($limiter / $limit) > 4) { $edge = $listings-$control; $edge_start = $edge+1; $edge_end = $edge+$control; $eecho = " ... [" . $edge_start . "-" . $edge_end ."] \n"; } } while ($row = mysql_fetch_assoc($sql)) { $tid = $row[Id]; $nume = $row[nume]; $prenume= $row [prenume]; $varsta = $row[varsta]; $oras = $row[oras]; $email = $row[email]; $comentariu = $row[comentariu]; ?>