well i am new to php .Now all i am trying to do is insert some data in a database table.
Here is the sample code
<?php
include("DbMethods.php");
connectToDb();
$name=$_POST['name'];
$location=$_POST['location'];
$item=$_POST['item'];
$result=mysql_query("SELECT id FROM `customer` WHERE `name`='".$name."' AND `location`='".$location."' AND `item`='".$item."')")or die(mysql_error());
?>
and this is what the error looks like
check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
What exactly is wrong?