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.
I want to add one more field height value from Add Form page along with existing name and firstname. So I have added code accordingly but gets error. Please correct me.
Index.html:
` <select id="height" names ="height" class="js-example-basic-single" type="text" style="width:50%" placeholder = "";'>
I want to add one more field
height
value from Add Form page along with existingname
andfirstname
. So I have added code accordingly but gets error. Please correct me. Index.html: ` <select id="height" names ="height" class="js-example-basic-single" type="text" style="width:50%" placeholder = "";'>add.php: `$name = $mysqli->real_escape_string(strip_tags($_POST['name'])); $firstname = $mysqli->real_escape_string(strip_tags($_POST['firstname'])); $age = 20; $lastvisit = date('Y/m/d'); $height = $mysqli->real_escape_string(strip_tags($_POST['height'])); $tablename = $mysqli->real_escape_string(strip_tags($_POST['tablename']));
$return=false; if ( $stmt = $mysqli->prepare("INSERT INTO ".$tablename." (name, firstname, age, lastvisit, height) VALUES ( ?, ?, ?, ?, ?)")) {
loaddata.php:
$grid->addColumn('height', 'Height', 'string');
demo.js: ` data: { tablename : self.editableGrid.name, name: $("#name").val(), firstname: $("#firstname").val(), height: $("#height").val() }, success: function (response) { if (response == "ok" ) {MySql database: `height | varchar(30) | latin1_swedish_ci | | Yes | NULL'