Sample: select 9 items from sql,but just can only make two directory. then use trim() to delete the blank.