hi im trying to insert data in mysql using array, can someone please look at my code, i cant seem to make it work.
this is my post.php
/* POST.PHP */
$p
The thing is:
insertToDB
neither appears to be properly closed (maybe it is, at the end of the code section you provide) nor have a return
. If it is properly closed, it still lacks a return
(it may help you diagnose what is going on have conditional return for success and error cases.$query
but do not use it later. Unless you append to that string the result of converting your array into another string (a thing that I dont see either), I dont think you are going to INSERT
anything to your database.Maybe I'm missing something...