Inser record from db_query

From below query you can insert using db_query db_query('INSERT INTO {itg_menu_manager} (title,url,target,menu_level,menu_name,url_type,section_id,weight) VALUES (:values,:url,:target,:menu_level,:menu_name,:url_type,:section_id,:weight)', array(':values' => "ramji" ,":url" => 'asd', ':target' => 'asd' ,':menu_level' => 'menu_level' , ':menu_name' => 'asd',':url_type' => 'asd',':section_id' => 'asd', ':weight' => 12));

Advertisements

WordPress.com.

Up ↑