17){ $bName = "$bName17"."..."; }else{ $bName = $bFullname; } $nextitemId = $item['categoryId'] + 1; $nextItemIdSet = mysql_query('select * from item where categoryId = "'.$nextitemId.'" and category = "'.$category.'"'); $nextitem = mysql_fetch_assoc($nextItemIdSet); $nFullname = $nextitem['itemName1']; $nName17 = substr($nFullname,0,17); $nNameCount = strlen( $nFullname ) . "\n"; if( $nNameCount > 17){ $nName = "$nName17"."..."; }else{ $nName = $nFullname; } if($item["checked"] == "1"){ $article = $item['article']; }else{ $article = "Now Writing"; } ?>