Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strike>imho you can use <a href="http://www.iwebux.com/inline-edit-using-ajax-in-jquery/" rel="nofollow">Inline edit using Ajax in Jquery</a></p> <p>Here is it's <a href="http://www.iwebux.com/demos/ajax/" rel="nofollow">demo</a></p> <p>It will let you edit your displayed contents in the table itself..</strike></p> <p><strong>Update:</strong></p> <pre><code>&lt;form method="post" action=""&gt; &lt;input type="text" name="tb1" id="tb1" /&gt; &lt;input type="text" name="tb2" id ="tb2" /&gt; &lt;input type="submit" name="btn" value="Find" /&gt; &lt;/form&gt; &lt;?php include "conn.php"; $show = "SELECT * FROM data"; $rs = mysql_query($show) or die(mysql_error()); $add_to_textbox = "&lt;input type='button' name='btn' value='add0' /&gt;"; #****results in Grid**** echo "&lt;table width='360px' border='1' cellpadding='2'&gt;"; $rowID=1; while($row = mysql_fetch_array($rs)) { echo "&lt;tr&gt;"; echo "&lt;td width='130px' id='name".$rowID."'&gt;$row[Name]&lt;/td&gt;"; echo "&lt;td width='230px' id='link".$rowID."'&gt;&lt;a href = '$row[Link]'&gt;$row[Link]&lt;/a&gt;&lt;/td&gt;"; echo "&lt;td width='130px' onclick='txtValDisp($rowID);'&gt;$add_to_textbox&lt;/td&gt;"; echo "&lt;/tr&gt;"; $rowID++; } echo "&lt;/table&gt;"; #********************** mysql_free_result($rs); ?&gt; &lt;script type="text/javascript"&gt; function txtValDisp(rowID){ var linkVal = document.getElementById('link'+rowID+'').innerHTML.replace(/&lt;\/?[^&gt;]+(&gt;|$)/g, "\n"); document.getElementById("tb1").value = document.getElementById('name'+rowID+'').innerHTML; document.getElementById("tb2").value = linkVal; } &lt;/script&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload