How to insert entire value of $_POST in mysql database without writing like $_POST['something']
<p>I have html data in an array like </p>

<pre><code>Array( [postedMsg] =&gt; &lt;font color="blue"&gt;Blogger Wallpost&lt;/font&gt;
       [nbsp;&lt;div_dir] =&gt; "ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-JrRECIxhi4s/TzpAs4lmgnI/AAAAAAAAAD4/KWcPpfXEGtU/s1600/800px-Cooked_Poha.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;image&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Happy Blogger Wallpost&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;image src&lt;/div&gt;
     )
</code></pre>

<p>I try to use the code like </p>

<pre><code> foreach($htmlpostedMsg AS $key =&gt; $value) 
  {
     $htmlpostedMsg[$key] = $value;
  }
  print_r($htmlpostedMsg[$key]);
</code></pre>

<p>It prints only last part like</p>

<pre><code> \"ltr\" style=\"text-align: left;\" trbidi=\"on\"&gt;&lt;div class=\"separator\" style=\"clear: both; text-align: center;\"&gt;&lt;/div&gt;&lt;div class=\"separator\" style=\"clear: both; text-align: center;\"&gt;&lt;/div&gt;&lt;div class=\"separator\" style=\"clear: both; text-align: center;\"&gt;&lt;/div&gt;&lt;div class=\"separator\" style=\"clear: both; text-align: center;\"&gt;&lt;a href=\"http://4.bp.blogspot.com/-JrRECIxhi4s/TzpAs4lmgnI/AAAAAAAAAD4/KWcPpfXEGtU/s1600/800px-Cooked_Poha.jpg\" imageanchor=\"1\" style=\"margin-left: 1em; margin-right: 1em;\"&gt;image src&lt;/a&gt;&lt;/div&gt;&lt;div class=\"separator\" style=\"clear: both; text-align: center;\"&gt;Happy Blogger Wallpost&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;div class=\"blogger-post-footer\"&gt;image src&lt;/div&gt;\n 
</code></pre>
