I have a table that has a cell that is contentEditable
. My problem is that the content is a date, and is it possible that the cell will look like <input type="date">
? So I can only update date if the column has a value and insert if it doesn't.
Here is what I got:
while ($record = mysql_fetch_array($myData)) {
echo"<tr>";
echo "<td><div contenteditable>" . $record['clientID'] . "</div></td>";
echo "<td><div contenteditable>" . $record['date'] . "</div></td>";
echo "<th><a href='test.php'>Update</a> ";
echo"</tr>";
}