Ok, I think i've worked it out.. well.. it works anyway, whether or not it's the correct way i'll leave for you to decide 😉
Here's what I did in the end...
$result = mysql_query("SELECT * FROM hardcore WHERE doc = '$day' AND toc = '$showtime'")
or die(mysql_error());
if(mysql_num_rows($result) == 1)
echo "Sorry this slot is already taken";
else
mysql_query("INSERT INTO hardcore
(djid, djname, doc, toc, title, description)
VALUES('$djid', '$djname', '$day', '$showtime', '$title', '$description' ) ")
or die(mysql_error());
Like i say, it works... but is it right?
Any feedback is most welcome!
Thanks