3 methods to tweak your MySQL database result pages

Most people use PHP and MySQL together and there are several reasons to do so: It’s easy, fast and powerful! If you create a MySQL database result, the data is not formatted and looks ugly. The following functions or code examples will help you to create better looking MySQL database result pages. Continue reading 3 methods to tweak your MySQL database result pages

Configure Postfix + Mailgun on a Cloud VPS

Some days ago I got a very cheap VPS from VULTR with 125GB of SATA storage for only $5,- a month. A small VPS which is fast enough for my websites backups. While all my other VPS servers are installed with Serverpilot, this server was installed with only with Ubuntu 14.04. Because my backups are created by native Linux function like rsync (executed by some CRON jobs), there is no other software required. There is one bottom-line, this configuration doesn’t include any mail function. I used the following steps to configure Postfix & Mailgun for my little server. Continue reading Configure Postfix + Mailgun on a Cloud VPS

Convert string to slug and other custom string functions

Recently I needed a function to convert a company name into a slug. As an example this slug is for the URL of a customer detail page. Since those names (the customer database table has more than 1300 records) contains special characters like “é” or “ë”, I needed a function that can handle this too. A quick Google search has provided something like this: Continue reading Convert string to slug and other custom string functions

Create a dynamic select menu with PHP

In many HTML forms or content management systems the form element “SELECT” is used frequently. If you use your PHP code inside the standard HTML element the code will be nearly unreadable. Adding extra options is not really fun. This small handy function will produce a select menu based on an associative array. Just define an array and call the function, that’s all you need to do. Continue reading Create a dynamic select menu with PHP

How to verify email addresses from your mailing list?

Email marketing is still one of the most efficient ways to reach your customer, leads and site followers. If your mailing list becomes older and hasn’t been used for some time, there is serious chance that some of the email addresses aren’t valid anymore.

Why do you need to verify these email addresses?

Some people would say, why should I care and there are people sending out their mailings to these invalid email addresses many times. Continue reading How to verify email addresses from your mailing list?