Tutorials Page 225

  • By
    Return Random Records in MySQL

    The ability to return random records from a MySQL table is invaluable. Returning random records is helpful when: featuring items without showing favoritism to one testing different result sets in your PHP looking to display specific items in a non-specific order The great part about selecting random records from...

  • By
    Create a JavaScript Refresh Link

    Until the advent of AJAX, to view an updated version of a page, you'd have to refresh the page. A page refresh link still has its place today for website that update frequently but don't offer AJAX or META refresh capabilities. The Code There you have it!

  • By
    PHP Shorthand If / Else Examples

    In looking at my Google Analytics statistics, I see a lot of visitors searching for PHP shorthand if/else (ternary) information. I've gone through my code library and picked out some examples of ternary operator usage. Basic True / False Declaration Conditional Welcome Message Conditional Items Message Conditional Error Reporting...

  • By
    When JavaScript Frameworks Collide

    Though their theories on JavaScript coding differ, JavaScript framework developers keep a tight lip when it comes to commenting on other frameworks. When another framework is brought up, the developer usually gives generic responses like "they're doing good work" or "they've got a unique approach."...

  • By
    Weekend Links – Web Design Trends & Cliches, CSS Design, PHP HTML Parser, Yahoo! Web 2.0, PHP Checklist, MooTools AJAX Bejeweled, Starbox

    2007: More Web Design Trends & ClichesNot so much as a a rip at the year's design trend as it is an indictment of Web 2.0. My RSS icon is cliche -- damn!http://www.modernlifeisrubbish.co.uk/article/2007-more-web-design-trends-and-cliches/Best of CSS Design 2007This list is a more positive...

  • By
    PHP Form Helper – Submit Listener

    Unfortunately for me, web forms a big part of my day. It's not that web forms are difficult, it's that they're so damn time consuming. Validation, formatting, and processing are a must for web forms and the redundancy that goes into performing the task...

  • By
    Listless Navigation – Using CSS To Do More With Less

    I've guest-blogged on Chris Coyier's blog, CSS-Tricks.com.Jump over to Chris' blog to read my article -- Listless Navigation - Using CSS To Do More With Less.

  • By
    PHP Alexa Rank Fetcher Class

    The most well known online website popularity measuring stick appears to be Alexa. Alexa provides a wealth of information on a given website, most notably: Popularity rank (the most important one) Reach In-links Speed Alexa provides this information in many useful formats, including XML. Using the XML...

  • Media Temple Hosting
  • By
    Download a URL’s Content Using PHP cURL

    Downloading content at a specific URL is common practice on the internet, especially due to increased usage of web services and APIs offered by Amazon, Alexa, Digg, etc. PHP's cURL library, which often comes with default shared hosting configurations, allows web developers to complete this...

  • By
    HTML Test – Name The HTML Elements

    If you're looking to test your HTML knowledge (and who isn't?), take a trip to the justsayhi website. How many elements can you name in five minutes?As an aside, the JavaScript built into the test is simple but perfect...