Posts Tagged ‘database table’

How do I use PHP to create a mailing list?

I have a database populated with email addresses and its all configured with php files and such on a webserver. What PHP commands do I use to read the emails from the database table and send an email to all of them at once?

PHP: How to store system configurations on a database and use them as constants?

I’d like to have constants in PHP which are retrieved from a database. Essentially, I’d like to create a page that can update this database table so the next time I load the site, it will use these newly updated constants which are again retrieved from the database.

I’m looking for things that can be changed directly by the admin without needing to go into the source code and manually changing the hardcoded constants file.