Hello.

Can I add any data directly from table into data base using dreamviewer 8 by php?
i mean in design view, i add table. then when i enter a data in the cell, so can i add this cell text to a field in DB table?

Also how can i add extra row when someone clicks the link "Cleick here to add another row".

The code is;

<h1 align="center">PATIENT RECORD </h1>
          <p align="center">Enter New Patient Record. </p>          
          <form action="" method="get">
          <table width="559" border="1" align="center">
            <tr>
              <td><label>Patient ID :
                  <input type="text" name="pid" />
              </label></td>
              <td><label>Patient Name :
                  <input type="text" name="pname" />
              </label></td>
            </tr>
            <tr>
              <td><label>Father/Husband Name :
                  <input type="text" name="fhname" />
              </label></td>
              <td><label>Gender :
                  <select name="gender">
                  </select>
              </label></td>
            </tr>
            <tr>
              <td><label>Age :
                <input type="text" name="age" />
                </label></td>
              <td><label>Admitt Date :
                  <input type="text" name="adate" />
              </label></td>
            </tr>
            <tr>
              <td><label>Discharge Date :
                  <input type="text" name="ddate" />
              </label></td>
              <td><label>Visit Number :
                  <input type="text" name="visit" />
              </label></td>
            </tr>
            <tr>
              <td><label>Treated By :
                  <select name="tby">
                  </select>
              </label></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td colspan="2"><label>Issue/ Tests :
                  <textarea name="issue" wrap="physical"></textarea>
              </label></td>
              </tr>
          </table>  
          <p>Medicines Refered and Surgical Equipments used: </p>
          <table width="559" border="1" align="center">
            <tr>
              <td width="312"><strong>Medicine</strong></td>
              <td width="80"><strong>Quantity</strong></td>
              <td width="65"><strong>Rate</strong></td>
              <td width="74"><strong>Total</strong></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
          </table>
          <p>Click here to add another row. </p>
          <p>&nbsp;</p>
          </form>        

i mean in design view, i add table. then when i enter a data in the cell, so can i add this cell text to a field in DB table?

Do you mean to do this in DreamWeaver?

Also how can i add extra row when someone clicks the link "Click here to add another row".

This is a Javascript question. In our Javascript forum there are already examples available.

Hmm. Then I will have to use textfields here. Because the I want that user should enter data on run time, and that is only possible when textfiled is available for him/her.

Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.