hello,
i have store value in database like this in only one field.

one.
two.
three.

but i am retriveing from database that is displaying like this

one.two.three.

but i want same format.like in database

one.
two.
three.

If you mean all of the values are stored in the one cell or variable then the following will do the trick:

$var='one.two.three.';
$var=substr($var,0,-1);
$arr=explode('.',$var);
for ($i=0;isset($arr[$i]);$i++) {
echo $arr[$i].'<br>';
}

That is just from the top of my head and may or may not have bugs. Hope it helps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.