Hi I am building my first website and need a statement to delete any records from 2 tables which contain a Patient_ID that the user specifies:
I have tried
mysql_query("DELETE FROM appointment
WHERE Patient_ID='$patid'
UNION
DELETE FROM patient
WHERE Patient_ID='$patid'");
and also
mysql_query("DELETE FROM appointment INNER JOIN patient
WHERE Patient_ID='$patid'");
would really appreciate some help with this!
thanks in advance