database operation in drupal 7

there are now different Drupal functions for each query type: SELECT – use db_query INSERT – use db_insert UPDATE – use db_update DELETE – use db_delete Note that you can also execute some of these queries with the drupal_write_record function, but I’ve been having problems getting that to work, so I’m using these functions instead. … Continue reading