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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

WordPress.com.

Up ↑

%d bloggers like this: