0

i try to run this code but it returned this error :
Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\removeproducts.php on line 31

could u please help me........


<html>
<head>
<title>removeproducts</title>
<meta http.equiv="Content-Type" content="text/html; charset=iso-8859-5">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<p>&nbsp;</p>
<table width="37%" border="0" align="center" cellpadding="0" cellspacing="0" height="66">
<tr>
<td bgcolor="#000000" height="10">
<div align="center"><b><font color="#FFFFFF">Choose a category from which the PRODUCT to be deleted</font></b></div>
</td>
</tr>
<tr>
<td bgcolor="#CCCCCC" height="17">
<form name="form3" method="post" action="catprobrowser.php">
<p align="center"><b>

<?php
$database="book";
$host="";
$username="root";
$password="";

$x=mysql_connect($host,$username,$password);
$x1=mysql_select_db($database);
$query="select categoryid, name from category;
$result=mysql_query($query);

echo" <select name=\" categoryid\">\n";
echo" <option value=\"0\">Select Product Category</option>\n";
while ($row=mysql_fetch_array($result))
{
echo" <option value=\" ".$row["categoryid"]."\">".$row["name"]."</option>\n";
}
echo " </select>";
?>

<input type="submit" name="Submit32" value="Submit">
</b><p>
</form>
</td>
</tr>
</table>
<p>&nbsp;</p>
<table width="37%" border="0" align="center" cellpadding="0" cellspacing="0" height="66">

<tr>
<td bgcolor="#000000" height="10">
<div align="center"><b>font color="#FFFFFF">REMOVE PRODUCT</font></b></div>
</td>
</tr>
<tr>
<td bgcolor="#CCCCCC" height="17">
<form name="form3" method="post" action="deleteproduct.php">
<p align="center"><b>Product ID
<input type="text" name="productid" size="10">
<input type="submit" name="Submit3" value="Submit">
</b></p>
</form>
</td>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>

2
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by pritaeas
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.