Sunday, December 12, 2010

Standardized Query to delete an record in Drupal 7


db_delete('table1')
->condition('uid', 1)
->execute();

?>

No comments:

Post a Comment