Ich komme einfach nicht drauf:
$eintragvorhanden = mysql_query("SELECT title,id FROM table WHERE table.title = ".$title." AND table.id = ".$_POST['eingabe'].";");
if(mysql_num_rows($eingabevorhanden)==0){
$control4 = 0;
}else{
$control4 = 1;
$error5 = 'bereits vorhanden!';
}
mysql_error() liefert mir dass hier:
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 'AND table.id = 1' at line 1
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in
Das $_POST['eingabe'] ist ein value von einem <select> und übergibt die id.
Sieht jemand was daran falsch sein soll?