How can i insert form data into a database?
Hello,
i am trying to get a form send into a new table in the tikiwiki database.
it is an absence form where u can mark students absence and then it is submitted by Post.
As i can see i got the variable and arrays set and made (checked with debug option). Now i only need some help how to make the function in the lib correct to insert it in the new database table.
is there someone who can help me to get on my way?
i probably have to start with this
$query = "insert into `tiki_absent`(`login`,`abdate`,`course`,`ababla`,`reason`,`comment`) values(?,?,?,?,?,?)";
the abdate and course are the only values wich are not an array the rest is.
now the prob is how to insert the parts of the array with the course and abdate vars?
I hope this is clear enough.
For thr one who can and will help me out. Many Thanks.