can anyone help me.
im getting the following error line:-
Parse error: syntax error, unexpected T_STRING in D:\xampp\htdocs\com626\b02ms\ProdSearch.php on line 58
and cant see where im going wrong. this is the lines of my code where the error may lie.
$db = mysql_connect("localhost", "b02ms", "30836302");
mysql_select_db("b02ms_626db",$db);
//This is the query, it basically says select all details from the books table where the booktitle or the bookauthor or the booksubject
//is anything like the criteria input into the search box. This query makes use of the wildcard, this is useful as the user does not
//have to enter the whole or exact details.
$dbQuery="SELECT * FROM products WHERE Prod_Man LIKE \"%$criteria%\";
$result = mysql_query($dbQuery,$db);
//The if part of this statement says: if the result of the query can't find anything matching the criteria (=0) then print a message to the
//screen telling the user there are no matches in the database.
if (mysql_num_rows($result)==0){
echo "Sorry, we have no trainers by that manufacturer.";}
//If there are matches found in the database then the else part of the statement is carried out, it returns all the matching results of the criteria
else{
echo "<h1><center>Products found</center></h1>";
echo "<table width=400 align=center cellpadding=6 cellspacing=4 border=3>";
echo"<b><tr><td>Prod_Pic</td><td>Prod_Man</td><td>Prod_Style</td><td>Price</td></tr></b>";
while ($rproduct=mysql_fetch_object($result))
{
echo "<tr><td>$rproduct->Prod_Pic</td> <td>$rproduct->Prod_Man</td> <td>$rproduct->Prod_Style</td> <td>$rproduct->Price</td><td><a href=\"basket.php?action=add_item&id=$rproduct->Prod_ID&qty=1\"><img src=\"cart.gif\" border=0></a></td></tr>";
}
}//End else
}else{
?>