upto without mysql