Hi peeps, im pulling my hair out ova this pathetic thing 😃 lol Can any1 help?
=====================
<?php
$dbcnx = @mysql_connect("localhost",
"***", "*****");
if (!$dbcnx) {
echo( "<P>Unable to connect to the " .
"database server at this time.</P>" );
exit();
}
if (! @mysql_select_db("catalog") ) {
echo( "<P>Unable to locate the " .
"database at this time.</P>" );
exit();
}
$result = mysql_query("DELETE FROM hsc_products WHERE
Product = '$Product'");
if (mysql_query($result)) {
echo("<P>The Product '$Product' has been deleted.</P>");
} else {
echo("<P>Error deleting Product: " .
mysql_error() . "</P>");
}
?>
It seems to bring up the following error:
Error deleting Product: You have an error in your SQL syntax near '1' at line 1
thanx
Jonathan