Is there a way to override mysql foreign key constraints in a php script?
I have a query passed to mysql from php, but it fails a foreign key constraint, is there any wa
mysql_query('SET foreign_key_checks = 0'); //do some stuff here mysql_query('SET foreign_key_checks = 1');