Hi,
I am very new to this so please bear with me.
I am retrieving values from a database and displaying them followed by a couple of colons, so
while ($item = mysql_fetch_array($items)) {
$item_fruit = $item["fruitname"];
echo($item_fruit . " :: ");
}
will display:
apple :: orange :: pear :: coconut :: strawberry ::
What I would like to do is stop the final pair of colons being output, so my results are:
apple :: orange :: pear :: coconut :: strawberry
Any help you could give to a non-programmer would be very much appreciated.
Many thanks,
Geoffo