Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
PHP mysql statement problem
ok so heres my problem
markup$query = mysql_query("UPDATE news SET title = '$title' WHERE id='$id'");
the problem im having is that its getting the value of $id, if i manually changed the value it works, and this sql statement here works,
markup$query = mysql_query("SELECT * FROM news WHERE id='$id'");
that there works perfectly fie which is why im baffled
also, this is my error checking…
die("Error:" . mysql_error());
}elseif (!$query2) {
die("Error:" . mysql_error());
}else {
echo "Succesfully edited!";
}```
there are no errors generated by this
any help would be appreciated
--5 excellent php programmers are baffled by this--