func table_insertion(db *sql.DB, table string, insert_info string) {
  var plant_info = strings.Split(insert_info,"/") //split our info to be inserted into an array
  stmt, err:= db.Prepare("INSERT INTO vegPlants(ID,Plant,PlantDate) VALUES(?,?,?)")
  checkErr(err)
  _,err = stmt.Exec(plant_info[0],plant_info[1],plant_info[2])
  checkErr(err)
}
//function that handles inserting values into a dynamic table of choice from main.
function that handles inserting values into a dynamic table of choice from main.
// function that handles inserting values into a dynamic table of choice from main .
func table_insertion(db *sql.DB, table string, insert_info string) {
  var plant_info = strings.Split(insert_info,"/") 
  stmt, err:= db.Prepare("INSERT INTO vegPlants(ID,Plant,PlantDate) VALUES(?,?,?)")
  checkErr(err)
  _,err = stmt.Exec(plant_info[0],plant_info[1],plant_info[2])
  checkErr(err)
}
func table_insertion ( db * sql . DB , table string , insert_info string ) { var plant_info = strings . Split ( insert_info , " " ) stmt , err := db . Prepare ( " " ) checkErr ( err ) _ , err = stmt . Exec ( plant_info [ 0 ] , plant_info [ 1 ] , plant_info [ 2 ] ) checkErr ( err ) }
function that handles inserting values into a dynamic table of choice from main.
function that handles inserting values into a dynamic table of choice from main .
//split our info to be inserted into an array