rogerl Posted November 20, 2007 Share Posted November 20, 2007 This has been driving me mad all day . . . read a string into a list but the list is only outputting the first letter of the string! Here's the script: $ct++ ; $list[$ct] = $subcat2 ; // string read from database up to 20 characters long echoing $subcats show full string $concat = $concat.", ".$list[$ct] ; At this time $concat shows that $list[$ct] is just the first letter. HelP! ??? Link to comment https://forums.phpfreaks.com/topic/78093-solved-string-being-shortened/ Share on other sites More sharing options...
MadTechie Posted November 20, 2007 Share Posted November 20, 2007 <?php $ct++ ; $list= array();//<--add this first (at the start of the script) $list[$ct] = $subcat2; $concat = $concat.", ".$list[$ct]; ?> *corrected typo Link to comment https://forums.phpfreaks.com/topic/78093-solved-string-being-shortened/#findComment-395218 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.