PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
include "../../includes/dbconnect.php";
$id=101; //remove quotes - numbers don't need them
mysql_query("DELETE FROM productlocation WHERE primary ='$id') or die (mysql_error());
So, I changed to another field in that table and it works fine. The problem is I need to use the primary field. It is a primary key that is an auto incrementing INT... Is there a reason I can't use that in my where statement.
So just to recap... This works: