<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.6.1" -->
<rss version="0.92">
<channel>
	<title>Shawngo.com</title>
	<link>http://www.shawngo.com</link>
	<description>Just another WorthLess weblog</description>
	<lastBuildDate>Thu, 25 Sep 2008 01:56:24 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Hotspots.php Google Map Script</title>
		<description>A visitor to the site had requested the Fishing Hotspots Script that I wrote several years ago. I figured it can't hurt to give it away since the code is pretty bad and all.

I decided to throw this script on the site as a download for all to enjoy. It ...</description>
		<link>http://www.shawngo.com/2008/09/hotspotsphp-google-map-script/</link>
			</item>
	<item>
		<title>JavaScript BlackBelt ISO JavaScript Ninja!</title>
		<description>Let it be known, I can't wait for Secrets of the JavaScript Ninja to be released. Written by JavaScript Sage John Resig author of my all time favorite JavaScript Library jQuery, this book is sure to be phenomenal!

The new jQuery site looks great! </description>
		<link>http://www.shawngo.com/2008/09/javascript-blackbelt-iso-javascript-ninja/</link>
			</item>
	<item>
		<title>Animated Progress Meter using jQuery</title>
		<description>Need an animated progress meter for an application? This particular example is set up to accept a percentage of completion and a couple other numbers you can set. It's super easy to use and implement, the best part, ONE line of javascript (including the 30KB that is jQuery(packed)).
View the animated ...</description>
		<link>http://www.shawngo.com/2008/04/animated-progress-meter-using-jquery/</link>
			</item>
	<item>
		<title>KML Generator for Google Earth - written in PHP</title>
		<description>A What Generator?

This script is a homemade botch that I wrote because I didn't like any of the other KML generating scripts out there.
The one that I did find is for PHP5. Hmph..
Basically this script grabs info from my Fishing Spots MySQL database and fires it out as xml, which ...</description>
		<link>http://www.shawngo.com/2008/04/kml-generator-for-google-earth-written-in-php/</link>
			</item>
	<item>
		<title>Google Maps API; A Tutorial</title>
		<description>Step 1: Google Maps API Key
Note: this didn't come out as expected during the Wordpress migration :(
In order to get a map on your site you must first sign up for a Google Maps API Key. There is no charge for this. Just make sure you follow the Google Maps ...</description>
		<link>http://www.shawngo.com/2008/04/google-maps-api-a-tutorial/</link>
			</item>
	<item>
		<title>PHP MySQL Connection Class</title>
		<description>This PHP helper class allows you to easily connect to your MySQL database.
There are a couple other functions that may prove useful such as:
mysql_result_all() - Displays results in a table
getUserIP() - returns the User's IP address
validate_email() - returns boolean if email validates. 
You must change the database information to your ...</description>
		<link>http://www.shawngo.com/2008/04/php-mysql-connection-class/</link>
			</item>
	<item>
		<title>Simple PHP Log-in script</title>
		<description>This page submits to itself, queries a database, and either allows or denies the user access.
You must change the database information to your particular database. 


&#60;?php
// simple login script
// filename: login.php
   $form = '
    Simple Login Form&#60;br&#62;
       &#60;form action="login.php" method="post"&#62;
       &#60;input type="text" name="username"&#62;
       &#60;input type="password" name="password"&#62;
       &#60;input type="submit" name="submit" value="submit this"&#62;
       &#60;/form&#62;
       ';
if(isset($_POST['submit'])){
    $hm = authenticate($_POST['username'], $_POST['password']);
    $hm2 = mysql_num_rows($hm);
    if($hm2 &#62; 0){
      echo "You are logged in";
    }else{
      echo "username / password not valid&#60;br&#62;";
      echo $form;
    }
}else{
    echo $form;
}
function authenticate($user, $pass){
    $user = str_replace(" ", "", $user); //remove spaces
    $pass = str_replace(" ", "", $pass); //remove spaces
    $user = str_replace("%20", "", $user); //remove escaped spaces
    $pass = str_replace("%20", "", $pass); //remove escaped spaces
    // add slashes to escape things like quotes and apostrophes
    // because they can be used to hijack SQL statements!
    $user = addslashes($user); //remove spaces from username
    $pass = addslashes($pass); //remove spaces from password
    // the function md5 creates a unique 32 character string,
    $pass = md5($pass);
    $request = "SELECT * FROM user WHERE password='$pass' AND userName='$user'";
    // Pass the request to the mysql connection,
    $results = query_db($request);
    // if mysql returns any number of rows great than 0 there is a match
    return $results;
}
function query_db($query){
    $conn = mysql_connect("localhost", "your_username", "your_password");
    if (!$conn) {
        die('Could not connecteeer: ' . mysql_error());
    }
    mysql_select_db("your_database");
    $results = mysql_query($query, $conn);
    mysql_close($conn);
    return $results;
}
 ?&#62;


 </description>
		<link>http://www.shawngo.com/2008/04/simple-php-log-in-script/</link>
			</item>
	<item>
		<title>Old Ajax 4-Star Rating Script</title>
		<description>Ok. This needs updating!! This is how I did it back in 2005 or so.

What I'd rather this be...
First off, this script is poorly written! Get rid of the javascript inside the xhtml tags!! Say hello to behaviour.js!
Second of all, who uses document.getElementById() anymore??? Say hello to my little friend ...</description>
		<link>http://www.shawngo.com/2008/04/old-ajax-rating-script/</link>
			</item>
	<item>
		<title>Ajax Rating Script using Thumbs Tutorial</title>
		<description>Thumber - Ajax / PHP Rating Script II
I made this script because I realized how awful my other Ajax Rating Script code looks!
This is a fairly light-weight, non-degradable :( Ajax script for rating a specific item using the "Thumbs Up, Thumbs Down" approach.
The script uses the Prototype Javascript Framework to ...</description>
		<link>http://www.shawngo.com/2008/04/ajax-rating-script-using-thumbs-tutorial/</link>
			</item>
	<item>
		<title>HTACCESS Wrappers Tutorial</title>
		<description>Instead of naming your PHP .php, you have the option of keeping the file extension as .html or .htm.
This only takes a few lines of code in the .htacces file, and a few more lines of code in the PHP script that runs the show.
Here is the code for the ...</description>
		<link>http://www.shawngo.com/2008/04/htaccess-wrappers-tutorial/</link>
			</item>
</channel>
</rss>
