exec($sql); echo "Progress table created successfully."; } catch (PDOException $e) { die("Could not connect to the database $dbname :" . $e->getMessage()); }