<?php
$link=mysql_connect("localhost", "root","parola") or die("Could not connect: " . mysql_error());
mysql_select_db('energiesolara',$link) or die ('Can\'t use energiesolaradb: ' . mysql_error());
$x=mysql_query("SELECT umiditate FROM parametrii");
while($info=mysql_fetch_array($x))
{
$comma_separated=implode(",",$info);
}
print "$comma_separated";
?>
I want that $comma_separated to store all the elements.But when I print that there is only one element which is doubled,because of $info I think.Pls help me.tnx