mysql_last_value() replace null value of column from row above the current row. Its like "same as above". WWW: http://www.geocities.com/jahan.geo -Aftab Jahan Subedar jahan@bol-online.com jahan@geocities.com