I have a sql query that works when i run it in phpmyadmin:
$result = $this->ImportBackup->query("DELETE t1 FROM import_backups
t1, backups t2 WHERE t1.name=t2.name AND t1.drive_id=t2.drive_id;");
This line should delete every record, where name and drive_id are
identival.
It works as long as the drive_id is 0 but not when it is 1 or 2
(drive_id is int)
Can anyone help me?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en