Forum Moderators: coopster
$result = mysql_query($query) or die("Can't execute query: " . mysql_error());
while($row = mysql_fetch_array($result))
{
$name .= $row['fname']."";
$date .= $row['day']."";
$wishl .= $row['wlist']."";
}
$name = rtrim($name,",");
$date = rtrim($date,",");
$wishl = rtrim($wishl,",");
-------------
Ok, here is my problem. While everything above works great, all the fields that I am assigning variables to have more than one entry. I would like to assign individual variables to them so I can use each one independantly. Currently if I echo $name what I end up with is this: name1name2. I would like to be able to echo let's say $name and get name. then echo $name1 and get name1 as output.
Can anybody give me a hand with this please?
Thanx in advance. :)