SELECT *
FROM TABELLA
WHERE codafrticolo>$codafrticolo_corrente
ORDER BY codafrticolo
LIMIT 1