Posts in category: PHP & MySQL

Laravel Framework | PHP & MySQL

Laravel 5.4 toggle sidebar state with AdminLte using Ajax and Sessions

AdminLte is a great Admin theme, one feature that’s really good is being able to toggle the si...

David Carr


PHP & MySQL | Tutorials

PHP read file from network drive

I’m working on a local hosted project where php needs to read a text file that’s stored...

David Carr


PHP & MySQL | Tutorials

MySQL find and replace

There are times when you need to bulk update a database. Such as changing all references of domain.c...

David Carr


PHP & MySQL

MySQL next record order by title

A common requirement for web applications is the ability to be able to move to the next and previous...

David Carr


PHP & MySQL | Tutorials

Quick way to get the number of days in a month with PHP

I’m building a php calendar and need to know the total number of days in a month in the past I...

David Carr


PHP & MySQL | Tutorials

Splitting an array into smaller arrays using array_chunk

There a times when you have an array and need to slit that array into smaller ones, I usually reach...

David Carr


Nova Framework | PHP & MySQL | Tutorials

Using X-editable for inline editing

X-editable allows you to create editable elements on your page. Includes both popup and inline...

David Carr


API | PHP & MySQL | Tutorials

Post to Slack using the incoming webhooks API

Slack is a great tool for teams I use it to communicate with the rest of my team, recently I’v...

David Carr


PHP & MySQL | Tutorials | Tools

How to use Github Hooks to send updates to your website

For anyone that uses Github know’s how useful it is, especially on the collaboration front. Al...

David Carr


PHP & MySQL | Tutorials

PHP reverse date using strtotime

I use datepickers a lot in my projects the date’s default to the American YYYY-MM-DD format so...

David Carr


PHP & MySQL | Tutorials | Development

Installing php 7 on Mac

Setting up a mac to run php 7 instead of the default php 5.5.

David Carr


PHP & MySQL | Tutorials | Development

Gitlab download private repository as tar.gz with php

Gitlab is a great alternative to Github or BitBucket, they offer free private and public repositorie...

David Carr


PHP & MySQL | Tutorials | Development

How to Set up PHP Statistics

Sometimes you need to make improvements to your code and make things more efficient. Using some simp...

Dan Sherwood


PHP & MySQL | Tutorials

Extract image source from img tag

To extract the image source from an image tag making use of preg_replace and a regular exp...

David Carr


PHP & MySQL | Tutorials

Checking all array keys are the same with PHP

Here is a simple way to check the values of an array contain the same value using array_count_values...

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.