nitesh Posted March 19, 2012 Share Posted March 19, 2012 hi everone iam trying to insert form two value in wordpress database but it's now working function test_insertdata() { global $wpdb; $welcome_name = 'imgheadd'; $welcome_text = 'imgpathd'; $table_name = $wpdb->prefix . "table_name"; $wpdb->insert( $table_name, array('imghead' => $welcome_name,'imgpath' => $welcome_text)); };this is form<input name="imgheadd" type="text" id="imgheadd" style="width: 300px;" value=""/><input name="imgpathd" type="text" id="imgpathd" style="width: 300px;" value=""/> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.