Posts in category: PHP & MySQL

PHP & MySQL | Tutorials

comparing multiple values against in_array

PHP's in_array is useful to determine if an item is in an array but when needing to compare...

David Carr


PHP & MySQL | Tutorials

Using Premailer to convert styles to inline styles for HTML emails automatically with PHP

Sending HTML emails can be tricky, not all mail clients support the same css. Most ignore external s...

David Carr


PHP & MySQL | Tutorials

Forcing HTTPS with PHP

Using HTTPS is recomended, Google also preferes HTTPS they recently announced: “HTTPS is&...

David Carr


IMAP | PHP & MySQL | Tutorials

Cpanel create emails with php

Here’s a easy way to create new email addresses for Cpanel using PHP. I recently needed t...

David Carr


Demos | PHP & MySQL | Tutorials

Create PDF with form data

It’s possible to populate a PDF using information provided by a form using the MPDF ...

David Carr


PHP & MySQL | Tutorials

How to backup and restore a MySQL Database

I was recently asked how do backup and restore a database. As with most things in programming there...

David Carr


PHP & MySQL | Tutorials | Tools | Development

Beginner Guides

The following is a collection of useful starter guides and tutorials.

David Carr


PHP & MySQL | Tutorials

Upload multiple files with a single input with HTML 5 and PHP

HTML 5 makes it possible to upload multiple files using a single input thanks for a new multiple att...

David Carr


PHP & MySQL | Tutorials

Select previous and next rows in MySQL

Selecting previous and next rows based on the current row is a common task in most web applications,...

David Carr


PHP & MySQL | Tutorials | Social Media

Backup to Dropbox with PHP

Recently I've been looking into Dropbox's API so I decided to have a go at building an appli...

David Carr


PHP & MySQL | Tutorials

Running mysqldump with PHP

Every project should have regular backups. Writing database tables to a file using PHP while possibl...

David Carr


PHP & MySQL | Tutorials

Using closures and $this within a class with PHP

Closures are really useful, especially for creating plugins when a full blown controller is not need...

David Carr


PHP & MySQL | Tutorials

Get initials from a name

Here is a simple way to collect the first letter of each word, This can be useful to get say a perso...

David Carr


PHP & MySQL | Tutorials

Quick way to add hours and minutes with PHP

This post describes a very simple way to add or sub-tract time to a given time using the date and st...

David Carr


Demos | PHP & MySQL | Tutorials

Form to CSV with PHP

Outputting a forms contents to a CSV file is incredibly handy and easy to do, this post will cover t...

David Carr


Support my work by donating with PayPal.

Subscribe to my newsletter

Subscribe and get my books and product announcements.

© 2009 - 2021 DC Blog. All code MIT license. All rights reserved.