Unanswered: How to save array of records into the DB
Guyz... i really need your help so badly.This thing is really complicated for me.
var tbl = document.getElementById('myTable')
var nRow = tbl.rows.length - 13
var row = tbl.insertRow(nRow)
var blankCell = row.insertCell(0)
var addCell = row.insertCell(1)
var PartText = new Array(3)
var Append = addCell.appendChild
var Caption = document.createTextNode
PartText[i] = document.createElement('input')
PartText[i].type = 'text'
PartText[i].id = 'addPart'
PartText[i].name = 'addPart'
Append(Caption(' Part Name: '))
Append(Caption(' Part Number: '))
Append(Caption(' Version: '))
This should display the info perviously inserted. If nothing is displayed, then you know that the variables where never assigned correctly. I think they might not be assigned correctly cause I think you might need double quotes instead of single quotes in the $_POST().
$q= "INSERT INTO PARTS (partname, partnumber, version) VALUES ('$addpartname','$addpartnumber','$addversion')";
you should also take the output from query and run it against the database in some other program like sql query analyzer just to check syntax.