drag n drop table rows from 1 to another and save content in database
<p>Please help me out, my problem is as follows</p>

<p>in <em>javascript</em> <code>redips-drag.js</code></p>

<p>there's a line in one function which is as follows</p>

<pre><code>if (tbl_cell.childNodes[d].tagName === 'DIV')
{
 query += 'p[]=' + tbl_cell.childNodes[d].id 
                 + '_' + t + '_' + r + '_' + c + '_'
                 + tbl_cell.childNodes[d].innerHTML +'&amp;';
}
</code></pre>

<p>in <code>multiple-parameters.php</code> which is used to input data in mysql code is as follows</p>

<pre><code>list($id, $tbl, $row, $col, $val) = explode('_', $p);
echo $val;
</code></pre>

<p>it prints me this</p>

<blockquote>
  <p>ASP.NET Sharepoint <strong>Dropdown</strong></p>
</blockquote>

<p>where ASP.NET Sharepoint are my table values and Dropdown is a select list where in selected value 1 in the table it still returns me the select dropdown when i echo the $val variable it should have printed me</p>

<blockquote>
  <p>ASP.NET Sharepoint <strong>1</strong></p>
</blockquote>

<p>remember i m dragging dropping table rows from one to another and then trying to save data in database.</p>

<pre><code>   &lt;tr class="rd"&gt;
     &lt;td class="rowhandler"&gt;&lt;div class="drag row"&gt;&lt;/div&gt;&lt;/td&gt;
 &lt;td align="center"&gt;&lt;div id="d1"&gt;&lt;input type="hidden" name="sname&lt;? echo $i; ?&gt;" value="&lt;?echo $temp;?&gt;" /&gt;&lt;? echo $temp ?&gt;&lt;/div&gt;&lt;/td&gt;
     &lt;td align="center"&gt;&lt;div id="d2"&gt;&lt;input type="hidden" name="sdesc&lt;? echo $i; ?&gt;" value="&lt;?echo $temp1;?&gt;" /&gt;&lt;? echo $temp1 ?&gt;&lt;/div&gt;&lt;/td&gt;
     &lt;td align="center"&gt;
     &lt;div id="d3"&gt; 
      &lt;select name="selfRating&lt;? echo $i; ?&gt;" id="selfRating&lt;? echo $i; ?&gt;"&gt;
       &lt;option value=""&gt;Select&lt;/option&gt;
       &lt;option value="1" &lt;?php if (isset($_POST['selfRating'.$i]) &amp;&amp; $_POST['selfRating'.$i] == "1") {echo 'selected="selected"';} ?&gt; &gt;1&lt;/option&gt;
       &lt;option value="2" &lt;?php if (isset($_POST['selfRating'.$i]) &amp;&amp; $_POST['selfRating'.$i] == "2") {echo 'selected="selected"';} ?&gt; &gt;2&lt;/option&gt;
       &lt;option value="3" &lt;?php if (isset($_POST['selfRating'.$i]) &amp;&amp; $_POST['selfRating'.$i] == "3") {echo 'selected="selected"';} ?&gt; &gt;3&lt;/option&gt;
       &lt;option value="4" &lt;?php if (isset($_POST['selfRating'.$i]) &amp;&amp; $_POST['selfRating'.$i] == "4") {echo 'selected="selected"';} ?&gt; &gt;4&lt;/option&gt;
       &lt;option value="5" &lt;?php if (isset($_POST['selfRating'.$i]) &amp;&amp; $_POST['selfRating'.$i] == "5") {echo 'selected="selected"';} ?&gt; &gt;5&lt;/option&gt;
      &lt;/select&gt;
     &lt;/div&gt;
    &lt;/td&gt;
   &lt;/tr&gt;
</code></pre>
