What is your database schema? Like, what fields have you got? Are you sure you're not making the ID NULL or 0? Looking at the SQL you're running, it looks like you might be...

What is your database schema? Like, what fields have you got? Are you sure you're not making the ID NULL or 0? Looking at the SQL you're running, it looks like you might be...
You're settting you're ID column to NULL...
Try this:
PHP Code:mysql_query("UPDATE `timetest` SET (slot, time) VALUES ('', '22:00') WHERE `id` != '1' ;") or exit("Could not import the sunday timetable data");
Want to hide these adverts? Register an account for free!