webismymind / editablegrid

EditableGrid is an open source Javascript library aimed at turning HTML tables into advanced editable components. It focuses on simplicity: only a few lines of code are required to get your first table up and running.
http://www.editablegrid.net
Other
795 stars 272 forks source link

Add current date while adding new record #178

Closed Samadhan1012 closed 7 years ago

Samadhan1012 commented 7 years ago

I have added date field into add record form. I want to add current date into field. But it's just adding 00/00/0000 in table. Index.html: `

**add.php:** $lastvisit = $mysqli->real_escape_string(strip_tags($_POST['lastvisit'])); if ( $stmt = $mysqli->prepare("INSERT INTO ".$tablename." (name, lastvisit, firstname) VALUES ( ?, ?, ?)")) { $stmt->bind_param("sss", $name, $lastvisit, $firstname);`