Latest PHP / Mysql Posts
  • Email validation is something that is needed in a variety of situations, but I’ve always struggled to find a good one…. Well, here are 2! The first is something I...

    PHP Email Validation

    Email validation is something that is needed in a variety of situations, but I’ve always struggled to find a good one…. Well, here are 2! The first is something I…

  • Ever wanted to see the variables in a page? Warning!! It’ll show all of them…. <?php print_r(get_defined_vars()); ?>

    PHP Get Defined Vars

    Ever wanted to see the variables in a page? Warning!! It’ll show all of them…. <?php print_r(get_defined_vars()); ?>

  • A good logout script is needed in most applications, and here’s the one I use. I have this script in a ‘config’ file that I call at the beginning of...

    FW: PHP Logout

    A good logout script is needed in most applications, and here’s the one I use. I have this script in a ‘config’ file that I call at the beginning of…

  • I often forget the exact syntax of things like this… So here’s an example… $query1 = 'SELECT * FROM `'.$dbName.'`.`users` WHERE email NOT IN (SELECT email FROM `'.$setupDBName.'`.`users`)';

    SELECT inside a SELECT

    I often forget the exact syntax of things like this… So here’s an example… $query1 = ‘SELECT * FROM `’.$dbName.’`.`users` WHERE email NOT IN (SELECT email FROM `’.$setupDBName.’`.`users`)’;

Latest JavaScript / JQuery Posts
  • Using ‘hotspots’ to swap images is pretty straight forward, and can be really effective…. try this method from Stackoverflow <img src="nav.jpg" /> //set off state var nav_off = "/images/nav-off.jpg"; //...

    Great Hotspot Image Swap

    Using ‘hotspots’ to swap images is pretty straight forward, and can be really effective…. try this method from Stackoverflow <img src=”nav.jpg” /> //set off state var nav_off = “/images/nav-off.jpg”; //…

  • http://net.tutsplus.com/tutorials/wordpress/anatomy-of-a-wordpress-plugin/ http://wordpress.tv/2009/09/20/john-hawkins-plugin-building-portland09/ http://www.tipsandtricks-hq.com/wordpress-lightbox-ultimate-plugin-display-media-in-a-fancy-lightbox-overlay-3163

    FW: Fancybox

    http://net.tutsplus.com/tutorials/wordpress/anatomy-of-a-wordpress-plugin/ http://wordpress.tv/2009/09/20/john-hawkins-plugin-building-portland09/ http://www.tipsandtricks-hq.com/wordpress-lightbox-ultimate-plugin-display-media-in-a-fancy-lightbox-overlay-3163

  • This small but very handy piece of code… onclick="javascript:return confirm('Are you sure you want to delete this?')" For example: <input type="submit" name="button" value="Delete Page" onclick="javascript:return confirm('Are you sure you want...

    Javascript ‘Are You Sure?’ Message

    This small but very handy piece of code… onclick=”javascript:return confirm(‘Are you sure you want to delete this?’)” For example: <input type=”submit” name=”button” value=”Delete Page” onclick=”javascript:return confirm(‘Are you sure you want…

  • Sometimes you need to change something depending on the browser size. Often this means that you’ll need to check for the browser being resized too… To do this you use:...

    window.onresize

    Sometimes you need to change something depending on the browser size. Often this means that you’ll need to check for the browser being resized too… To do this you use:…

Latest HTML & CMS Posts
Page 1 of 812345...Last »