exec($sql); echo "Table 'products' created successfully." . PHP_EOL; } catch (PDOException $e) { die("DB ERROR: " . $e->getMessage()); }