I am trying to insert an array into table (below):
$arr = implode(',',$_POST['name']);
$sql = "INSERT INTO test (name) VALUES ($arr)";
$mysqli->query($sql);
but im getting this error:
Fatal error: Call to a member function query() on a non-object
Any idea what is going on?