I want to bulk insert all POST data without having to individually type each name/field. Is the last line that has the mysql INSERT correct? Also I don't have to reprocess mysql_real_escape_string() again for the INSERT correct?
if (is_array($_POST['add']))
   foreach ($_POST['add'] as $key => $value) 
   $_POST['add'][$key] = mysql_real_escape_string(stripslashes($value));
   mysql_query("UPDATE mem SET m_".$key."='".$value."' WHERE m_id=$id");
.... more code
   mysql_query("INSERT INTO meminfo m_".$key." VALUES '".$value."'");
 
     
    