我怎样才能把这两张桌子放在一起
$result = mysql_query("SELECT * FROM berichten where fromm='$id' AND ontvanger = '$session->username' ORDER BY date ASC");
$result = mysql_query("SELECT * FROM berichten_send where fromm='$id' AND ontvanger = '$session->username' ORDER BY date ASC");
这是我试过的,但不起作用
$result = mysql_query("SELECT * FROM berichten LEFT JOIN berichten_send on berichten.id = berichten_send.id where fromm='$id' AND ontvanger = '$session->username' ORDER BY date ASC");
$number=mysql_num_rows($result);
while($row = mysql_fetch_array($result))
{
echo $row['msg'];
echo "<br>";
echo time_stamp($row['date']);
echo "<br>-----------------------<br>";
}