Can’t I use double condition in where clause in query. LIke I have used query..
mysql_query("DELETE * FROM srelsg WHERE skey='".$childid."' AND sgkey='".$sgid."' ") or die(mysql_error());
but its giving me syntax error. Might be I am using double variables in WHERE for delete query. Any other solution I can do it. Because combination of both variable make my tupple unique. else both field exist number of times.
There should not be a
*betweenDELETEandFROM. Change this:To this:
See the
DELETEsyntax in the MySQL manual.