I've read no documentation on either php or MySQL (I've picked up my knowledge from pre-made scripts and know most basics), and I'm trying to make a DJ timetable script.
I've got the form all done, but when I go to submit the data into the tables, it never works. I've tried multiple ways, but never works. Here's what I have currently:
$comments = $_POST['comments'];
$time = $_POST['time'];
$date = $_POST['date'];
$show = $_POST['name'];
$username = $logged['username'];
$sql = 'INSERT INTO `timetable` (`id`, `dj`, `time`, `date`, `show`, `comments`) VALUES (NULL, $logged[user], $time, $date, $show, $comments);';
Help is appreciated, so thanks in advance.