Here is the result of the query:
This is your query INSERT INTO plays (playid, title, comments, active, playcreatedt, lastchange) VALUES (NULL, 'Test for php', '', '0', '1055781448', NULL);No Database Selected
There was no database selected because this was handled by the query function.
After connecting I get:
This is your query INSERT INTO plays (playid, title, comments, active, playcreatedt, lastchange) VALUES (NULL, 'Test for php', '', '0', '1055781626', NULL);