$someUser['userid']]); } $res[] = tableAddConstraint('mail_queue', 'configid', 'mail_config', 'configid', 'ON UPDATE CASCADE ON DELETE CASCADE'); // Create response for browser if (in_array(UPDATE_DONE, $res)) { finalResponse(UPDATE_DONE, 'Tables created successfully'); } finalResponse(UPDATE_NOOP, 'Everything already up to date');