Hello everyone,
I have the script below and keep getiing this error:
Parse error: parse error, expecting ','' or';'' in /home/gloucester/public_html/php/rehautest.php on line 10
Whats going on?
<HEAD>
<TITLE>PHP</TITLE>
</HEAD>
<BODY>
<?php
$db = mysql_connect("localhost", "earlthompson", "archie");
mysql_select_db("earlthompsondb",$db);
$sql="SELECT * FROM rehaustock";
$result=mysql_query($sql,$db);
$num = mysql_num_rows($result);
$cur = 1;
while ($num >= $cur) {
$row = mysql_fetch_array($result);
$variant = $row["variant"];
$profile = $row["profile"];
$description = $row["description"];
$quantity = $row["quantity"];
echo "<Table">
<TR><TD>$variant</TD>
<TD>$profile</TD>
<TD>$description</TD>
<TD>$quantity</TD>
</TR>
</Table>";
$cur++;
}
?>
</BODY>