Php mysql- getting back a list of names from sever not working if list contains more that one entry. I'm thinking it this line $data .= "bffname=".$row->bffname; any advice would be most sincerely appreciated.
One name in the list
gets bffname=graham
two names in the list
gets bffname=grahambffname=bobby
PHP
$username = $_POST['username'];
$dbTable = "`".$username."_Friend`";
// getting data
$data = "";
$res = mysql_query("SELECT * FROM ".$dbTable." ORDER BY id") or die(mysql_error());
while($row = mysql_fetch_object($res)) {
$data .= "bffname=".$row->bffname;
}