Hy. 나는 비슷한 대답이 있다는 것을 알고 있지만, 나는 그것을 얻을 수 없다. 여기 내 대구입니다 :루프 외부에서 변수 표시
<?php include 'header.php'; ?>
<?php include 'connect.php';
$q = mysqli_query($link, $aaa = 'SELECT * FROM agentii LEFT JOIN orase ON agentii.oras=orase.oras_id WHERE orase.oras_id = \'' .$_GET['id']. '\'') or die(mysqli_error($link));
$row = mysqli_fetch_assoc($q);
?>
<h2>Title <em><?php echo $row['oras'];?></em></h2>
<div class="div_view">
<table cellspacing="0" cellpadding="5" border="0" width="100%">
<tr>
<th>Agentie</th>
<th>Adresa</th>
</tr>
<?php while ($row = mysqli_fetch_assoc($q)) { ?>
<tr>
<td><?php echo $row['agentie'];?></td>
<td><?php echo $row['adresa'];?></td>
</tr>
<?php }?>
</table>
</div>
<?php include 'footer.php'; ?>
이 출력 (새로운 계정이기 때문에 이미지를 넣을 수 없습니다 - 그래서는 PRT SRC에 대한 링크를 넣어) : 내가 3이 내 데이터베이스에서 http://postimage.org/image/w9zsexz91/
을 행 및 코드 출력에만 나는 2 mysqli_fetch_assoc 때문에 알고 있지만 모든 행을 표시하려면 및 너무 동안 제목 (<?php echo $row['oras'];?>
) 표시 싶어요.
누군가 나를 도와 줄 수 있습니까? Thx 사전에!
예! 이 작동합니다. Thx 남자! 두 가지 대답 모두 훌륭하지만, 나는 네 답을 고수 할 것이다. – Luna84