Posts: 1,832
Location: Somewhere else entirely
|
That just converts names - I think he wants a list of abbreviations:
tobeyt23, try this as a replacement for your inner loop:
PHP Code:
if (mysql_num_rows($result) > 0) { $statelist = array(); while ($sqldatarow = mysql_fetch_assoc($result)) { $statelist[] = $sqldatarow["abbrv"]; } $state_rep = implode(", ",$statelist); }
That ought to add each of the abbreviations to an array called statelist. Then at the end the implode function will convert the array to a string, with each abbreviation separated by a comma and a space.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';
Please login or register to view this content. Registration is FREE (aka MSN handwriting for forums)
Last edited by 0beron; 06-30-2005 at 04:15 AM..
|