What’s wrong with the following SQL query?
$sql="SELECT * FROM ".TABLE." WHERE desgid='$id', weightid='$weightid' AND deptid='$deptid' ";
The error message is:
You have an error in your SQL syntax;
check the manual that corresponds to
your MySQL server version for the
right syntax to use near ‘
weightid=’12’ AND deptid=’31” at line
1
1 Answer