I'm trying to delete entries in two tables by using:
It coming back with this error though:PHP Code:
$query = "DELETE FROM gallery, pictures WHERE gallery.gid=$gid && pictures.gid=$gid";
$result = mysql_db_query($DBName, $query, $connection) or die ("Error in query: $query. " . mysql_error());
What am I doing wrongPHP Code:
You have an error in your SQL syntax near ' pictures WHERE gallery.gid=15 && pictures.gid=15' at line 1
Any help would be appreciated.