exec($sql_alter); echo "Altered 'food_listings' table to add more delivery statuses.\n"; } catch (PDOException $e) { echo "Could not alter 'food_listings' table (maybe statuses already exist). Error: " . $e->getMessage() . "\n"; } } catch (PDOException $e) { die("DB ERROR: " . $e->getMessage()); }