exec($sql); echo "INFO: `messages` table created or already exists."; } catch (PDOException $e) { die("ERROR: Could not connect to the database: " . $e->getMessage()); }