Hello I am extremely new to using php just to warn everyone.
I am getting the following error:
Parse error: syntax error, unexpected '>' in c:/... at line 49
My Code is the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTDxhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Campbell Sales</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>
<body>
<?php
// Connect and select a database
mysql_connect("localhost", "root", "");
mysql_select_db("addressBook");
//Run a query
$result = mysql_query("SELECT * FROM inventory WHERE PartNumber = 'R10 ZZ');
?>
<h1>Campbell Sales</h1>
<table border='1' cellpadding='2' cellspacing='3'
summary=\"Table holds Cambell inventory information\">
<tr>
<th>isle</th>
<th>col</th>
<th>r</th>
<th>row</th>
<th>quantity</th>
<th>partnumber</th>
<th>surplus</th>
<th>description</th>
<th>cost</th>
<th>entryorder</th>
<th>icrr</th>
<th>irrc</th>
<th>rowm</th>
</tr>
<?php
// Loop through all table rows
while ($row = mysql_fetch_array($result)) {
echo "<tr>";
echo "<td>" . $row['isle'] . "</td>";
echo "<td>" . $row['col'] . "</td>";
echo "<td>" . $row['r'] . "</td>";
echo "<td>" . $row['row'] . "</td>";
echo "<td>" . $row['quantity'] . "</td>";
echo "<td>" . $row['partnumber'] . "</td>";
echo "<td>" . $row['surplus'] . "</td>";
echo "<td>" . $row['description'] . "</td>";
echo "<td>" . $row['cost'] . "</td>";
echo "<td>" . $row['entryorder'] . "</td>";
echo "<td>" . $row['icrr'] . "</td>";
echo "<td>" . $row['irrc'] . "</td>";
echo "<td>" . $row['rowm'] . "</td>";
echo "</tr>";
}
// Free result memory and close database connection
mysql_free_result($result);
mysql_close();
?>
</table>
</body>
</html>
Line 49 is:
echo "<tr>";
Can anyone please help me figure out what I am doing wrong?
Thanks