<h1>List of Employers</h1>
<?php
include("connection.php");
?>
<table border ="1">
<tr>
<td>Registration Date</td
<td>Registration ID</td>
<td>Organization Name</td>
<td>Contact Name</td>
<td>Total</td>
<td>Amount Due</td>
<td>Pay Status</td>
<td>Status</td>
<td>Registration Complete</td>
</tr>
$query = "SELECT Registration Date, Registration ID, Organization Name, Contact Name, Total, Amount Due, Pay Status, Status, Registration Complete FROM Business";
$result = mysql_query($query)
while($row = mysql_fetch_array($result))
{
print "<tr>";
print "<td>" . $row['Registration Date'] . "</td>";
print "<td>" . $row['Registration ID'] . "</td>";
print "<td>" . $row['Organization Name'] . "</td>";
print "<td>" . $row['Contact Name'] . "</td>";
print "<td>" . $row['Total'] . "</td>";
print "<td>" . $row['Amount Due'] . "</td>";
print "<td>" . $row['Pay Status'] . "</td>";
print "<td>" . $row['Status'] . "</td>";
print "<td>" . $row['Registration Complete'] . "</td>";
print "</tr>";
}
print "</table>";
?>
無論我使用多少不同的代碼,我無法獲取任何形式的數據庫連接到這些表。這並不工作,我不知道將我試過很多不同的東西如何連接到數據庫並獲取數組?我有數據庫中的數據,但我不知道如何做到這一點
運行PHP教程,然後再試一次。 – BPS