我的身份证没有通过网址。我的代码如下
<?php
include 'library/connect.php';
$result = mysql_query("SELECT * FROM meetings ");
echo "<table border='1'><tr><th>Title</th><th>Chairman</th><th>Secretary</th><th>Terms of Reference</th><th>Named membership</th><th>Occurences</th><th>Book Room</th></tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['title']. "</td>";
echo "<td>" . $row['chairman']. "</td>";
echo "<td>" . $row['secretary']. "</td>";
echo "<td>" . $row['termsOfReference']. "</td>";
echo "<td>" . $row['named_membership']. "</td>";
echo "<td>" . $row['occurences']. "</td>";
?>
<td><a href ="secretary_booksRoom.php?meeting_id=<?php echo $meeting_id; ?>"><font color="#CC3300">Book: room/date/time</font></a></td>
<?php
}
echo "</tr>";
echo "</table>";
include 'library/closedb.php';
?>
你知道有什么问题吗?
最佳答案
$meeting_id
设置在哪里?在我看来应该是$row['meeting_id']
。
关于php - ID不通过网址,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/8731719/