PHP and mySQL related tips and code.
XML stands for EXtensible Markup Language. It is a language designed to accurately describe and structure data, keeping it separate from any styling or visual formatting. Its aim is to separate presentation, structure, and meaning from the actual content - and it does a pretty good job of it.
Storing the data in this fuss-free way is great and many tools, software and websites output data/feeds in the XML format because it is reliable, format-free, robust, easily transferred and easily
Updated 01-13-2016 at 04:05 PM by Beverleyh
I was inspired by a recent forum thread, to write a click counter that can count clicks/hits to any HTML element (links, buttons, images, etc.). Multiple counts are saved to one text file (no database needed) using PHP, while AJAX displays the increasing numbers in real time. No page refresh required!
DEMO - AJAX & PHP Click-Counter with Flat File Storage
Updated 11-17-2015 at 12:23 PM by Beverleyh
Responsive web design (done well) allows users to achieve their goals on any internet accessible device, but what if they *want* to view the fixed width desktop version of a website, even on mobile?
This post comes at a time when responsive web design interest is piquing - certainly here on DD - probably the result of those emails we've been receiving via Google Webmaster Tools, that basically tell us how "X % of your web pages do not provide an optimal mobile experience... your
Updated 04-16-2015 at 07:41 PM by Beverleyh
Here is a simple PHP script to change stylesheets or load in alternative content (conditional loading), with cookies to store user selection.
Updated 12-20-2014 at 06:55 AM by Beverleyh
My modal gallery has evolved and here come versions 4 and 5. Both now include pagination but version 5 is PHP generated to help with maintainability.
First, a recap on the gallery development so far;
Now, so far, this gallery has only
Updated 07-10-2014 at 11:49 AM by Beverleyh