Welcome Guest,


This Page is Best Viewed in Firefox
Spreadfirefox Affiliate 	Button

Snippetz Library

« previous 1 2 next »

  1. Check for valid email

    Favoritesubmitted 842 days ago by Kevin under PHP

    function is_valid_email($email)
    {
    	if(preg_match("/[a-zA-Z0-9_-. ] @[a-zA-Z0-9-] .[a-zA-Z] /", $email) >...see whole snippet

  2. Get Current Page URL

    Favoritesubmitted 842 days ago by Kevin under PHP with HTML

    <?php
    function curPageURL() {
     $pageURL = 'http';
     if ($_SERVER["HTTPS"] =...see whole snippet

  3. HTML Test Page for CSS Style Guide

    Favoritesubmitted 842 days ago by Kevin under XML / XHTML

    <!-- Sample Content to Plugin to Template -->
    <h1>CSS Basic...see whole snippet
    Description: URL: http://www.sitefromscratch.com/content/html-xhtml-css-testing Great page for testing the style guide for a website.

  4. Simple MySQL Search Function

    Favoritesubmitted 842 days ago by Kevin under PHP

    if (!function_exists('mysql_search')) {
    
       function mysql_search($table, $columns, $query = '', $options...see whole snippet
    Description: A quick and simple way to search a MySQL database. Example: mysqlsearch('items', 'title tags', isset($GET['q'])?$GET['q']:'', Array('columns'=>'*', 'method'=>'OR', 'extrasql'=>'AND active = "true" ORDER BY id DESC'));

  5. Download file

    Favoritesubmitted 842 days ago by Kevin under PHP

    <?php
    
    $filename = $_GET['filename'];
    
    // Modify this line to indicate...see whole snippet

  6. JS Browser Detection

    Favoritesubmitted 842 days ago by Kevin under JavaScript

    // Browser detection
    
    // Internet Explorer
    var ie  = document.all...see whole snippet
    Description: Detects the browser and its version.

« previous 1 2 next »