Hello i have a table like this
Name | Date | Email
------+------------+------
Dima | 2013-04-01 | email@yahoo.com
Dima | 2013-07-03 | email@yahoo.com
Dima | 2013-03-06 | email@yahoo.com
Andrei| 2013-01-28 | testemail@yahoo.com
Andrei| 2013-01-12 | testemail@yahoo.com
echo'<table>';
$stmt = $dbh->prepare("SELECT * FROM Users");
$stmt->execute();
while ($row = $stmt->fetch())
{
$name=$row['Name'];
$date=$row['Date'];
$email=$row['Email'];
<tr>
<td>'.$name.'</td>
<td>'.$date.'</td>
<td>'.$email.'</td>
</tr>
}
echo'</table>';
This query will display me the exact table from database, what i want is to display all the info related to Dima for example to one row
Dima \ 2013-04-01, 2013-07-03, 2013-03-06 \ email@yahoo.com