php
-
403 Permissions error after changing permalinks
By Chris Parker on February 9, 2017 in phpSolution 1: Delete .htaccess Upload a blank .htaccess Set the permissions to 666 Change the permalink structure to what you […]011 -
How to add excerpt function to WP Job Manager
By Chris on July 7, 2015 in phpThe WP Job Manager plug in great, however you may need to add custom exceprt function to the job descriptions […] -
How to fix the php error It is not safe to rely on the system’s timezone settings
By Chris on February 27, 2015 in phpError message” Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings… This is due to […] -
How to update multiple rows of your MySQL database by selecting ID range
By Chris on March 27, 2013 in phpThis updates all products to live status (1) in the column ProductLive whose ID is between 2596 and 3029 UPDATE […] -
How to make striped table rows with Javascript
By Chris on November 23, 2011 in php1. Enter this Javascript in the head of your page along with the latest jquery pack ( http://docs.jquery.com/Downloading_jQuery ) <script […] -
How to create dynamic copyright text with php
By Chris on August 30, 2011 in php, Web Design Snippets<?php ini_set(‘date.timezone’, ‘Europe/London’); $startYear = 2007; $thisYear = date(‘Y’); If ($startYear == $thisYear) { echo $startYear; } else { echo […] -
How to create a Spry Collapsible Panel within a repeat region
By Chris on July 20, 2011 in php, Web Design SnippetsI had to create an FAQ section on a website recently so this solution came in very handy as the […] -
How to automatically display the current year in php
By Chris on March 29, 2011 in php<?php echo date(“Y”); ?> easy! -
How to make a menu link display as active when the navigation is in a php include file
By Chris on March 29, 2011 in phpI always use this bit of code for my navigation links that are part of a php include file. Whenever […] -
How to show part of a webpage if a recordset condition is true
By Chris on January 13, 2011 in phpWith a neat bit of php of course! Using the code below you can reveal a section of your page […]