Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/09/14001309/html/wordpress/wp-content/themes/wardelldesign/header.php on line 103

Warning: mysql_query(): A link to the server could not be established in /home/content/09/14001309/html/wordpress/wp-content/themes/wardelldesign/header.php on line 103

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/content/09/14001309/html/wordpress/wp-content/themes/wardelldesign/header.php on line 107

Warning: implode(): Invalid arguments passed in /home/content/09/14001309/html/wordpress/wp-content/themes/wardelldesign/header.php on line 113
Code | Wardell Design Blog - Part 2

Posts Tagged ‘code’

Redirect a WordPress Post to its Permalink

Sunday, August 30th, 2009
grey-l

I realize the title of this post may sound a little redundant, but I've noticed something peculiar in WordPress, it seems that it will automatically redirect a page if you change the page name (aka slug) but wont bother with anything else in the URL. Case in point I recently published a blog but forgot ...

Filtering MySQL Query Results With PHP

Tuesday, January 27th, 2009

For a while I'd been trying to figure out how to output a mysql query while excluding rows with duplicate values for a specific pair of column values, and then ordering by the most recent timestamp. Some if the phrases I ended up searching the web for were get all from distinct, order by then ...

Create a Rollover Class with JavaScript

Saturday, December 6th, 2008

Here is a simple and very effective way to create rollovers using a images class and id attributes, a naming convention, and the following javascript. The first thing you will need are the images for your rollovers up,over and down states. The second thing you'll need to do is name the images with the same base name ...

DHTML / JavaScript Marquee

Tuesday, November 25th, 2008

Any one who is keen about writing valid (X)HTML knows that the marquee tag is not part of the HTML specification. So what is one to do when in need of a scrolling marquee within a valid html document? The following code demonstrates how to create a valid marquee using html, css, and javascript. Enter the ...

© Wardell Design 2019
Entries (RSS) and Comments (RSS).