Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

temp^late php table for mysql

<?php
$sqlacq ="SELECT * FROM tblAcq";
$resultacq = $conn->query($sqlacq);
?>
       <table id="acq-tbl" class="tbl-qa" border="1">
          <thead>
              <tr>
                <th class="table-header" width="10%">AcqID</th>
                <th class="table-header">Data (an-luna-zi)</th>
                <th class="table-header">AcqNumber</th>
                <th class="table-header">AcqSupplier</th>
                <th class="table-header">AcqNote</th>
                <th class="table-header">InStocLa</th>

              </tr>
          </thead>
          <tbody>
       <?php
        function table_print($rowacq) {
              echo '<tr class="table-row" ondblclick="mySelection(event)">';
              echo '<td>'.$rowacq["AcqID"].'</td>';
              echo '<td contenteditable="true" onBlur="saveToDatabase(this,'AcqDate',''.$rowacq["AcqID"].'')" onClick="showEdit(this);">'.$rowacq["AcqDate"].'</td>';
              echo '<td contenteditable="true" onBlur="saveToDatabase(this,'AcqNumber',''.$rowacq["AcqID"].'')" onClick="showEdit(this);">'.$rowacq["AcqNumber"].'</td>';
              echo '<td contenteditable="true" onBlur="saveToDatabase(this,'AcqSupplier',''.$rowacq["AcqID"].'')" onClick="showEdit(this);">'.$rowacq["AcqSupplier"].'</td>';
              echo '<td contenteditable="true" onBlur="saveToDatabase(this,'AcqNote',''.$rowacq["AcqID"].'')" onClick="showEdit(this);">'.$rowacq["AcqNote"].'</td>';
              echo '<td>'.$rowacq["InStocLa"].'</td>';
              echo '<td align="center"><a href="javascript:delete_id('.$rowacq["AcqID"].')"><img src="b_drop.png" alt="Delete" /></a></td>'
              echo "</tr>";

        }
       if ($resultacq->num_rows > 0) {
            while($rowacq = $resultacq->fetch_assoc()) {
                table_print($rowacq);
            }
       }
?>
Comment

PREVIOUS NEXT
Code Example
Csharp :: beard styles without mustache Intitle:work with me 
Csharp :: remove language folders build visual studio 
Csharp :: c# Color Convert 
Csharp :: unity AppDomain 
Csharp :: permutation and combination program in c# 
Csharp :: OOP inC# 
Csharp :: @using System,System.Core 
Csharp :: Implementing Banner Ads Unity 
Csharp :: unity how to have multiple headers 
Csharp :: windows form button border color 
Csharp :: c# summary angle brackets 
Csharp :: detect mouse in bottom of screen + unity 
Csharp :: how to make your player movr the way you are rotated in unity 
Csharp :: leantween unity when timescale 0 
Csharp :: switch case c# enum tostring 
Csharp :: how to get user control dropdown value in asp net 
Csharp :: properties vs field c# 
Csharp :: Convert any class to a keyvaluepair 
Csharp :: Options Pattern how to use 
Csharp :: imagetarget found event vuforia c# 
Csharp :: C# parallel for loop specify cores 
Csharp :: create file gz c# 
Csharp :: C# sprint key 
Csharp :: bitter foods examplews 
Csharp :: unity rotatoin angle 
Csharp :: entity framework attach 
Csharp :: one to many relationship in asp net entity framework with role 
Csharp :: how to set window position 
Csharp :: how to get image from resource folder in c# 
Csharp :: c# mapper.map 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =