Category: Tutorials

Mysql Update Part of a String

I have a client with a trainer directory on their site. There is a field in the database that stores the trainer’s accolades. One of the accolades is to be considered a Top Trainer....

Simple HTML content fade in with JQuery

Simple HTML content fade in with JQuery

JQuery in the Head <script> $( document ).ready(function() { $('#firstbody').animate({opacity:'toggle'}, 1000).is(':visible'); $('#first, #second, #third, #fourth, #five, #six, #seven').on('click', function(){ var el = $('#'+this.id+'body'); if ( el.is(':visible') ) return false; el.animate({opacity:'toggle'},1000) $('#firstbody, #secondbody, #thirdbody, #fourthbody,...

Form Variables not Passing Integers

is_int() vs is_numeric() One great way to handle security it to make sure that your code is expecting the type of input it needs, rather than what it gets.  For example if you code...

Web and Marketing Podcast

In May I decided to create a podcast for the web and marketing community.  The podcast is named “Web Snacks”  and features topics ranging from web development technologies to tutorials about how to run...

Make a Form Cancel Button

The Cancel Button You are making an edit form for a site. The form allows a users to make changes to something and submit the changes to the database. This is a typical scenario...

Moving WordPress Site to a New Domain

Scenario:  You bought domain, JohnsHatDogs.com.  You configured the DNS and it’s pointing to your hosting provider’s name server.  You installed WordPress.  You’ve started updating content and got a great Hot Dog Theme – just...

Searching a string in Javascript

Javascript searching through a string

exec() vs match() vs test() vs search() vs indexOf() Is it all about speed?? Testing the speed of JS search methods test() and indexOf() are the fastest match() and search() are the slowest What...