<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-338240620364139367</id><updated>2011-11-17T12:07:06.145-05:00</updated><category term='resize'/><category term='MYSQL'/><category term='HTACCESS'/><category term='motionscript'/><category term='ActionScript'/><category term='Navigation'/><category term='Ajax'/><category term='Pause'/><category term='Flash'/><category term='RSS'/><category term='Browser Compatibility'/><category term='General'/><category term='Event Handlers'/><category term='scrollbars'/><category term='codec'/><category term='Apache'/><category term='Forms'/><category term='HTML5'/><category term='IE7'/><category term='MSSQL'/><category term='Mobile'/><category term='jQuery'/><category term='IE6'/><category term='CSS'/><category term='Javascript'/><category term='Fonts'/><category term='Cheat Sheet'/><category term='Buttons'/><category term='ASP'/><category term='XML'/><category term='Session'/><category term='Dreamweaver'/><category term='ascii'/><category term='aftereffects'/><category term='filters'/><category term='PHP'/><category term='exprssions'/><category term='Firefox'/><category term='SEO'/><category term='cURL'/><category term='Validation'/><category term='IE8'/><category term='H.264'/><category term='errors'/><category term='HTML'/><category term='CMS'/><category term='Internet Explorer'/><category term='Social Bookmarking'/><category term='fixes'/><category term='IIS7'/><category term='Cookies'/><category term='multiply'/><category term='jpgs'/><category term='Redirect'/><category term='Referrer'/><category term='IE6 bugs'/><title type='text'>Phire it Up</title><subtitle type='html'>A web development &amp;amp; design blog from &lt;a href="http://www.phirebranding.com"&gt;Phire Branding Co.&lt;/a&gt;  Just stuff we&amp;#39;ve found useful on the net that we wanted to save for ourselves and others who are interested.  Nothing formal, but maybe something helpful.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>96</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-3298948850009322915</id><published>2011-11-17T11:26:00.003-05:00</published><updated>2011-11-17T12:07:06.180-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jpgs'/><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><category scheme='http://www.blogger.com/atom/ns#' term='resize'/><title type='text'>Flash Image smoothing</title><content type='html'>Sometime we have to resize JPGs in Flash on a "loadMovie" script by making the target scale - just because.  However, this usually makes the image jagged and pixelated - hate it!&lt;br /&gt;&lt;br /&gt;So let's fix it.  I found this &lt;a href="http://www.kaourantin.net/2005/12/dynamically-loading-bitmaps-with.html"&gt;here&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;import flash.display.*;&lt;br /&gt;&lt;br /&gt;function loadBitmapSmoothed(url:String, target:MovieClip) {&lt;br /&gt;  // Create a movie clip which will contain our&lt;br /&gt;  // unsmoothed bitmap&lt;br /&gt;  var bmc:MovieClip = target.createEmptyMovieClip(&lt;br /&gt;      "bmc",&lt;br /&gt;      target.getNextHighestDepth());&lt;br /&gt;&lt;br /&gt;  // Create a listener which will notify us when&lt;br /&gt;  // the bitmap loaded successfully&lt;br /&gt;  var listener:Object = new Object();&lt;br /&gt;&lt;br /&gt;  // Track the target&lt;br /&gt;  listener.tmc = target;&lt;br /&gt;&lt;br /&gt;  // If the bitmap loaded successfully we redraw the&lt;br /&gt;  // movie into a BitmapData object and then attach&lt;br /&gt;  // that BitmapData to the target movie clip with&lt;br /&gt;  // the smoothing flag turned on.&lt;br /&gt;  listener.onLoadInit = function(mc:MovieClip) {&lt;br /&gt;      mc._visible = false;&lt;br /&gt;&lt;br /&gt;      var bitmap:BitmapData = new BitmapData(&lt;br /&gt;          mc._width,&lt;br /&gt;          mc._height,&lt;br /&gt;          true);&lt;br /&gt;&lt;br /&gt;       this.tmc.attachBitmap(&lt;br /&gt;          bitmap,&lt;br /&gt;          this.tmc.getNextHighestDepth(),&lt;br /&gt;          "auto",&lt;br /&gt;          true);&lt;br /&gt;&lt;br /&gt;       bitmap.draw(mc);&lt;br /&gt;  };&lt;br /&gt;&lt;br /&gt;  // Do it, load the bitmap now&lt;br /&gt;  var loader:MovieClipLoader = new MovieClipLoader();&lt;br /&gt;  loader.addListener(listener);&lt;br /&gt;  loader.loadClip(url, bmc);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;font-size:85%;" &gt;Then all that is left to do is add:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;createEmptyMovieClip("myMC",getNextHighestDepth());&lt;br /&gt;loadBitmapSmoothed("mypic.jpg",myMC);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-3298948850009322915?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/3298948850009322915/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=3298948850009322915' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3298948850009322915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3298948850009322915'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2011/11/flash-image-smoothing.html' title='Flash Image smoothing'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-7338172415653734613</id><published>2011-10-19T14:49:00.003-04:00</published><updated>2011-10-19T14:52:36.832-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='exprssions'/><category scheme='http://www.blogger.com/atom/ns#' term='aftereffects'/><title type='text'>More Wiggle</title><content type='html'>Just moves on the Y-axis&lt;br /&gt;&lt;br /&gt;With the object selected, choose the parameter you want to effect (e.g. position, scale, anchor point, etc.)&lt;br /&gt;&lt;br /&gt;w = wiggle(.2,100);&lt;br /&gt;// Above is my variable "w" that will hold my wiggle (home many times per second, how much)&lt;br /&gt;[value[0],w[1],value[2]]&lt;br /&gt;// 0 = x-axis, 1 = y-axis, 2 = z-axis&lt;br /&gt;// "value" says just hold the normal value&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-7338172415653734613?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/7338172415653734613/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=7338172415653734613' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/7338172415653734613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/7338172415653734613'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2011/10/more-wiggle.html' title='More Wiggle'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-3019130075420020671</id><published>2011-09-29T16:15:00.005-04:00</published><updated>2011-09-29T16:18:12.006-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML5'/><category scheme='http://www.blogger.com/atom/ns#' term='codec'/><category scheme='http://www.blogger.com/atom/ns#' term='H.264'/><title type='text'>H.264 Codec settings</title><content type='html'>I've been struggling to get my Adobe Media Encoder to make H.264 videos right for the iPhone 3.  It was working on the iPhone 4.  Just learned some "default" settings are incorrect.  Found this:&lt;br /&gt;&lt;br /&gt;"When encoding, please make sure you are using H.264 Baseline Profile  Level 3.0 or lower with no more than three reference frames, AAC Low  Complexity Profile, and an MP4 container if you want to support older  iProducts."&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-3019130075420020671?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/3019130075420020671/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=3019130075420020671' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3019130075420020671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3019130075420020671'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2011/09/h264-codec-settings.html' title='H.264 Codec settings'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-1820903402543721486</id><published>2011-09-28T10:13:00.005-04:00</published><updated>2011-09-28T11:13:13.326-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='motionscript'/><category scheme='http://www.blogger.com/atom/ns#' term='aftereffects'/><title type='text'>AfterEffects MotionScript - "random" position</title><content type='html'>Wiggle is a cool little function in AfterEffects.&lt;br /&gt;&lt;br /&gt;Clicking on the "transform parameter" select SHIFT+ALT "=", Animation &amp;gt; Add Expression.  Then past this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;wiggle(.2,25)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The first value is the frequency, the second is the amount/change.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-1820903402543721486?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/1820903402543721486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=1820903402543721486' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1820903402543721486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1820903402543721486'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2011/09/aftereffects-motionscript-random.html' title='AfterEffects MotionScript - &quot;random&quot; position'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-2611472799334448943</id><published>2011-09-28T10:12:00.001-04:00</published><updated>2011-09-28T11:13:01.213-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='motionscript'/><category scheme='http://www.blogger.com/atom/ns#' term='aftereffects'/><title type='text'>AfterEffect MotionScript - Random Scale</title><content type='html'>&lt;span style="font-family:courier new;"&gt;segMin = .75; //minimum segment duration&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;segMax = 1.25; //maximum segment duration&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;minVal = 5;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;maxVal = 10;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;end = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;j = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;while ( time &amp;gt;= end){&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  j += 1;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  seedRandom(j,true);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  start = end;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  end += random(segMin,segMax);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;s = random(minVal,maxVal);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;endVal = [s,s];&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;seedRandom(j-1,true);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;dummy=random(); //this is a throw-away value&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;s = random(minVal,maxVal);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;startVal = [s,s]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ease(time,start,end,startVal,endVal)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-2611472799334448943?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/2611472799334448943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=2611472799334448943' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2611472799334448943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2611472799334448943'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2011/09/aftereffect-motionscript-random-scale.html' title='AfterEffect MotionScript - Random Scale'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-78628952356153247</id><published>2011-06-14T13:16:00.001-04:00</published><updated>2011-06-14T13:18:25.632-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Mobile'/><category scheme='http://www.blogger.com/atom/ns#' term='Browser Compatibility'/><title type='text'>Mobile Browser Detect</title><content type='html'>This is a great PHP script to detect the type of device that is visiting your site and redirecting to a different version.  It detects all major phone operating systems (android, iphone, blackberry, windows, etc.).  The script is free for non-profit and only $50 if your company is for profit.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Check it out: &lt;a href="http://detectmobilebrowsers.mobi/"&gt;http://detectmobilebrowsers.mobi/&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-78628952356153247?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/78628952356153247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=78628952356153247' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/78628952356153247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/78628952356153247'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2011/06/mobile-browser-detect.html' title='Mobile Browser Detect'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-6730751676187572501</id><published>2011-06-06T13:01:00.004-04:00</published><updated>2011-06-06T13:03:09.291-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML5'/><category scheme='http://www.blogger.com/atom/ns#' term='Fonts'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>HTML5 Fonts</title><content type='html'>Great resource for generating CSS and all font files needed for HTML5 broswers:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.fontsquirrel.com/fontface/generator"&gt;http://www.fontsquirrel.com/fontface/generator&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-6730751676187572501?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/6730751676187572501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=6730751676187572501' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6730751676187572501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6730751676187572501'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2011/06/html5-fonts.html' title='HTML5 Fonts'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-9222648452140225362</id><published>2011-06-06T12:34:00.002-04:00</published><updated>2011-06-06T12:35:29.262-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL'/><title type='text'>MySQL Joins made Simple</title><content type='html'>Sometimes JOINs in MySQL can get confusing.  This article will help make it super simple for you!&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; line-height: 16px; "&gt;&lt;p style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em; "&gt;&lt;img height="174" alt="INNER_JOIN.png" src="http://www.codeproject.com/KB/database/Visual_SQL_Joins/INNER_JOIN.png" width="258" style="overflow-x: auto; overflow-y: auto; " /&gt;&lt;/p&gt;&lt;p style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em; "&gt;This is the simplest, most understood Join and is the most common. This query will return all of the records in the left table (table A) that have a matching record in the right table (table B).&lt;/p&gt;&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Continue Reading: &lt;a href="http://www.codeproject.com/KB/database/Visual_SQL_Joins.aspx?msg=3373088"&gt;http://www.codeproject.com/KB/database/Visual_SQL_Joins.aspx?msg=3373088&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-9222648452140225362?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/9222648452140225362/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=9222648452140225362' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/9222648452140225362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/9222648452140225362'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2011/06/mysql-joins-made-simple.html' title='MySQL Joins made Simple'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-4062607785651436554</id><published>2011-02-01T10:38:00.001-05:00</published><updated>2011-02-01T10:40:35.691-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='IE8'/><category scheme='http://www.blogger.com/atom/ns#' term='IE7'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='IE6 bugs'/><category scheme='http://www.blogger.com/atom/ns#' term='IE6'/><title type='text'>Force IE6, IE7 and IE8 to be more compliant</title><content type='html'>Pretty cool project going on that forces older versions of IE to be more compliant.  It relies on javascript to allow for some of the newer CSS styling (but not all).  It even has a transparent PNG fix for IE 6.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Check it out here: &lt;a href="http://code.google.com/p/ie7-js/"&gt;http://code.google.com/p/ie7-js/&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-4062607785651436554?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/4062607785651436554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=4062607785651436554' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4062607785651436554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4062607785651436554'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2011/02/force-ie6-ie7-and-ie8-to-be-more.html' title='Force IE6, IE7 and IE8 to be more compliant'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-23043299851019186</id><published>2011-02-01T10:35:00.001-05:00</published><updated>2011-02-01T10:37:44.821-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IE7'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='IE6 bugs'/><category scheme='http://www.blogger.com/atom/ns#' term='IE6'/><title type='text'>Target IE6 and IE7 with CSS</title><content type='html'>Very nice way to target IE6 or IE7 specifically within your CSS doc.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="line-height: 24px; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Helvetica Neue', Hevetica, Arial, sans-serif; border-collapse: collapse; "&gt;&lt;pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0.5em; padding-bottom: 0px; padding-left: 0.5em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 16px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font: normal normal normal 1em/1.5em 'Courier New', Courier, monospace; color: rgb(51, 51, 51); "&gt;&lt;span class="Apple-style-span" style="color: rgb(204, 0, 204); font-family: monospace; line-height: 19px; "&gt;#myelement&lt;/span&gt;&lt;/pre&gt;&lt;pre class="css" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); font: normal normal normal 1em/1.5em 'Courier New', Courier, monospace; font-family: monospace; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 16px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 170, 0); "&gt;{&lt;/span&gt;&lt;span class="Apple-style-span"&gt; &lt;/span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 16px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); font-weight: bold; "&gt;color&lt;/span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 16px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 170, 0); "&gt;:&lt;/span&gt;&lt;span class="Apple-style-span"&gt; &lt;/span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 16px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(204, 0, 204); "&gt;#999&lt;/span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 16px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 170, 0); "&gt;;&lt;/span&gt;&lt;span class="Apple-style-span"&gt; &lt;/span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 16px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(128, 128, 128); font-style: italic; "&gt;/* shows in all browsers */&lt;/span&gt;&lt;span class="Apple-style-span"&gt; &lt;/span&gt;&lt;/pre&gt;&lt;pre class="css" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); font: normal normal normal 1em/1.5em 'Courier New', Courier, monospace; font-family: monospace; "&gt;&lt;span class="Apple-style-span"&gt;&lt;/span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 16px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 170, 0); "&gt;*&lt;/span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 16px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); font-weight: bold; "&gt;color&lt;/span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 16px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 170, 0); "&gt;:&lt;/span&gt;&lt;span class="Apple-style-span"&gt; &lt;/span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 16px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(204, 0, 204); "&gt;#999&lt;/span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 16px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 170, 0); "&gt;;&lt;/span&gt;&lt;span class="Apple-style-span"&gt; &lt;/span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 16px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(128, 128, 128); font-style: italic; "&gt;/* notice the * before the property - shows in IE7 and below */&lt;/span&gt;&lt;span class="Apple-style-span"&gt; &lt;/span&gt;&lt;/pre&gt;&lt;pre class="css" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); font: normal normal normal 1em/1.5em 'Courier New', Courier, monospace; font-family: monospace; "&gt;&lt;span class="Apple-style-span"&gt;_color&lt;/span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 16px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 170, 0); "&gt;:&lt;/span&gt;&lt;span class="Apple-style-span"&gt; &lt;/span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 16px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(204, 0, 204); "&gt;#999&lt;/span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 16px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 170, 0); "&gt;;&lt;/span&gt;&lt;span class="Apple-style-span"&gt; &lt;/span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 16px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(128, 128, 128); font-style: italic; "&gt;/* notice the _ before the property - shows in IE6 and below */&lt;/span&gt;&lt;span class="Apple-style-span"&gt; &lt;/span&gt;&lt;/pre&gt;&lt;pre class="css" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); font: normal normal normal 1em/1.5em 'Courier New', Courier, monospace; font-family: monospace; "&gt;&lt;span class="Apple-style-span"&gt;&lt;/span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 16px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 170, 0); "&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Credit to: &lt;a href="http://briancray.com/2009/04/16/target-ie6-and-ie7-with-only-1-extra-character-in-your-css/"&gt;http://briancray.com/2009/04/16/target-ie6-and-ie7-with-only-1-extra-character-in-your-css/&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-23043299851019186?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/23043299851019186/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=23043299851019186' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/23043299851019186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/23043299851019186'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2011/02/target-ie6-and-ie7-with-css.html' title='Target IE6 and IE7 with CSS'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-8967316355304579803</id><published>2010-06-24T14:52:00.000-04:00</published><updated>2010-06-24T14:53:44.511-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ActionScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><title type='text'>Flash Actionscript Tweening</title><content type='html'>function tween(mc, what, easeType, begin, end, time, then, onWhat) {&lt;br /&gt;    if (easeType == 1) {&lt;br /&gt;        myEase = Regular.easeInOut;&lt;br /&gt;    } else if (easeType == 2) {&lt;br /&gt;        myEase = Strong.easeInOut;&lt;br /&gt;    } else if (easeType == 3) {&lt;br /&gt;        myEase = Regular.easeOut;&lt;br /&gt;    } else if (easeType == 4) {&lt;br /&gt;        myEase = Strong.easeOut;&lt;br /&gt;    } else if (easeType == 5) {&lt;br /&gt;        myEase = Regular.easeIn;&lt;br /&gt;    } else if (easeType == 6) {&lt;br /&gt;        myEase = Strong.easeIn;&lt;br /&gt;    } else if (easeType == 7) {&lt;br /&gt;        myEase = None.easeNone;&lt;br /&gt;    }    else if (easeType == 8) {&lt;br /&gt;        myEase = Back.easeOut;&lt;br /&gt;    }&lt;br /&gt;   &lt;br /&gt;    var myTween:Tween = new Tween(mc, what, myEase, begin, end, time, false);&lt;br /&gt;    myTween.onMotionFinished = function() {&lt;br /&gt;        if (then != null) {&lt;br /&gt;            then.call();&lt;br /&gt;        }&lt;br /&gt;        //this.yoyo();&lt;br /&gt;    };&lt;br /&gt;&lt;br /&gt;};&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-8967316355304579803?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/8967316355304579803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=8967316355304579803' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8967316355304579803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8967316355304579803'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2010/06/flash-actionscript-tweening.html' title='Flash Actionscript Tweening'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-6601891231822670730</id><published>2010-02-05T10:09:00.004-05:00</published><updated>2010-02-05T10:22:41.683-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Forms'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><category scheme='http://www.blogger.com/atom/ns#' term='IE6 bugs'/><title type='text'>IE6: Removing Padding on Input Checkbox</title><content type='html'>If you've ever put a background on an input checkbox and viewed it in IE6, you'll notice there is padding around the checkbox.  Other browsers don't have this padding, and it can ruin designs if not dealt with.&lt;div&gt;&lt;br /&gt;An easy way to get rid of the padding through CSS is by adding these styles to the checkbox:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;code&gt;margin:0; width:13px; height:13px; overflow:hidden;&lt;/code&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Doing this will not affect any other browser (at least modern ones) and will fix your IE6 issues.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-6601891231822670730?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/6601891231822670730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=6601891231822670730' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6601891231822670730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6601891231822670730'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2010/02/ie6-removing-padding-on-input-checkbox.html' title='IE6: Removing Padding on Input Checkbox'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-8305833961479830948</id><published>2010-02-04T17:04:00.004-05:00</published><updated>2010-02-04T17:07:55.342-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Internet Explorer'/><category scheme='http://www.blogger.com/atom/ns#' term='Forms'/><category scheme='http://www.blogger.com/atom/ns#' term='IE6 bugs'/><title type='text'>Images in LABEL tag no clickable in IE</title><content type='html'>Internet Explorer doesn't allow your images that are within a LABEL tag to be clickable.  There is a javascript hack fix for this that works for sure in IE6-8.  Sometimes you need, for usability, to have your images work like text in the LABEL tag, this is how you can accomplish this in IE.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Note that all other browsers do this fine...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Get the code: &lt;a target="_blank" href="http://snook.ca/archives/javascript/using_images_as"&gt;Using Images as Labels in Internet Explorer&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-8305833961479830948?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/8305833961479830948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=8305833961479830948' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8305833961479830948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8305833961479830948'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2010/02/images-in-label-tag-no-clickable-in-ie.html' title='Images in LABEL tag no clickable in IE'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-8882710306854987536</id><published>2009-12-16T10:33:00.001-05:00</published><updated>2009-12-16T10:35:16.742-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ActionScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><title type='text'>My Flash to EXE fullscreen scalling settings</title><content type='html'>The new version of Flash Player when rendering an EXE document doesn't want to obey the "fscommand" for some reason.  I don't know why, I don't care.  This works just fine:&lt;br /&gt;&lt;br /&gt;fscommand("fullscreen", true);&lt;br /&gt;fscommand("allowscale", false);&lt;br /&gt;fscommand("showmenu", false);&lt;br /&gt;Stage.scaleMode = "showAll";&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-8882710306854987536?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/8882710306854987536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=8882710306854987536' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8882710306854987536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8882710306854987536'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/12/my-flash-to-exe-fullscreen-scalling.html' title='My Flash to EXE fullscreen scalling settings'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-2640322201322775240</id><published>2009-12-03T15:39:00.001-05:00</published><updated>2009-12-03T15:41:21.025-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='Browser Compatibility'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>CSS Selectors Browser Compatibility</title><content type='html'>Compatibility is one of the most annoying parts of web scripting and programming.  I've found a great reference when it comes to CSS selectors.  This should help you figure out what will work in old browsers and what you'll need to find a workaround for.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Continue Reading: &lt;a target="_blank" href="http://dev.l-c-n.com/CSS3-selectors/browser-support.php"&gt;CSS selectors: basic browser support&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-2640322201322775240?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/2640322201322775240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=2640322201322775240' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2640322201322775240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2640322201322775240'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/12/css-selectors-browser-compatibility.html' title='CSS Selectors Browser Compatibility'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-4229954053216792713</id><published>2009-12-02T09:53:00.002-05:00</published><updated>2009-12-02T09:57:43.641-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Hiding Text on Form Submit Button</title><content type='html'>I wanted to have CSS replace a submit button for one of the forms on my site.  So I decided to style it with a background image and set a text-indent to hide the text.  It worked nice but in Internet Explorer, the text wouldn't go away.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I found a strange way to make the text disappear even in Explorer.  Just use this bit of CSS for the submit button.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;     color: transparent;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;     text-transform: capitalize;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;That should do the trick!&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-4229954053216792713?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/4229954053216792713/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=4229954053216792713' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4229954053216792713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4229954053216792713'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/12/hiding-text-on-form-submit-button.html' title='Hiding Text on Form Submit Button'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-6428376783916070032</id><published>2009-11-17T16:50:00.003-05:00</published><updated>2009-11-17T17:00:24.467-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ActionScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><title type='text'>Mute Streaming Audio in Flash</title><content type='html'>Muting sounds that are streaming in Flash isn't as simple as changing the volume of an object via a "mute" button.  But it is surprisingly EASY!  I can't believe I didn't see it.  AND the movie continues to play and unmuting just brings the sound back in.... duh!&lt;br /&gt;&lt;br /&gt;Well, I searched and searched and finally found something.  Thanks (http://www.actionscript.org/forums/showthread.php3?t=32982)!  I made some simple modifications.&lt;br /&gt;&lt;br /&gt;This is my code.  I made a MC with 2 frames and buttons in it.  In frame 1, a button that calls "mute();"  here's the button code for the one that's in frame 1.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;on (release) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    nextFrame();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    this._parent.mute();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;/blockquote&gt;And frame 2 has this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;on(release) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    prevFrame();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    this._parent.unmute();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;And here's the code in the root.  I could easily make a volume slider that sets the "level" variable, and would then set.  But for most stuff, we simply need the sound to be either there... or not.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;level = 100;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;globalSound = new Sound();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;globalSound.setVolume(level);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;function mute() {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    trace("mute");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    //previewaudio.stop();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    globalSound.setVolume(0);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;function unmute() {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    trace("unmute");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    globalSound.setVolume(100);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-6428376783916070032?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/6428376783916070032/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=6428376783916070032' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6428376783916070032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6428376783916070032'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/11/mute-streaming-audio-in-flash.html' title='Mute Streaming Audio in Flash'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-4102751567663584011</id><published>2009-10-19T09:26:00.002-04:00</published><updated>2009-10-19T09:27:19.825-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='jQuery'/><title type='text'>Vertical Ticker Scroll with jQuery</title><content type='html'>Ever wanted to make those cool vertical scroll things?  Here is a great light weight way to accomplish it:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a target="_blank" href="http://www.webdesignbooth.com/create-a-vertical-scrolling-news-ticker-with-jquery-and-jcarousel-lite/"&gt;Create A Vertical Scrolling News Ticker with jQuery and jCarousel Lite&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-4102751567663584011?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/4102751567663584011/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=4102751567663584011' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4102751567663584011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4102751567663584011'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/10/vertical-ticker-scroll-with-jquery.html' title='Vertical Ticker Scroll with jQuery'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-2917454607021249505</id><published>2009-10-09T14:37:00.004-04:00</published><updated>2009-10-09T14:40:16.587-04:00</updated><title type='text'>Kern dynamic text is Flash Actionscript</title><content type='html'>I've always needed to know how to kern dynamic text is Flash Actionscript, and I knew there had to be a way.  Well, here it is.  I discovered this somewhere, made some tweeks, good stuff.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;function kernText(myTextField, kerning) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;myTextField&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;.html = true;&lt;/span&gt;&lt;br /&gt;   &lt;span style="font-family: courier new;"&gt;var newFormat:TextFormat = new TextFormat();&lt;/span&gt;&lt;br /&gt;   &lt;span style="font-family: courier new;"&gt;newFormat.letterSpacing = kerning;&lt;/span&gt;&lt;br /&gt;   &lt;span style="font-family: courier new;"&gt;//newFormat.font = "Arial"; // Add now whatever format needs you have.&lt;/span&gt;&lt;br /&gt;   &lt;span style="font-family: courier new;"&gt;myTextField&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;.setTextFormat(newFormat);&lt;/span&gt;&lt;br /&gt;  &lt;span style="font-family: courier new;"&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-2917454607021249505?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/2917454607021249505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=2917454607021249505' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2917454607021249505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2917454607021249505'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/10/kern-dynamic-text-is-flash-actionscript.html' title='Kern dynamic text is Flash Actionscript'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-5685589274252256997</id><published>2009-10-07T12:47:00.003-04:00</published><updated>2009-10-07T12:50:59.298-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ActionScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><title type='text'>Flash right-click menu</title><content type='html'>I've always been looking for a nice and easy Flash right-click menu builder.  This one seems extremely straight-foward and EASY!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;function calledFunction1() {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;       trace("&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;calledFunction1&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;function calledFunction2(){&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;       trace("&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;calledFunction2&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;MENU = new ContextMenu();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;MENU.hideBuiltInItems();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;insertAfter = new ContextMenuItem("Call function 1", calledFunction1);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;insertBefore = new ContextMenuItem("Call function 2", calledFunction2);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;MENU.customItems.push(&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;calledFunction1&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;MENU.customItems.push(&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;calledFunction2&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;_root.menu = MENU;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-5685589274252256997?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/5685589274252256997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=5685589274252256997' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/5685589274252256997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/5685589274252256997'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/10/flash-right-click-menu.html' title='Flash right-click menu'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-3892991015222532708</id><published>2009-07-02T13:32:00.004-04:00</published><updated>2009-07-02T13:36:37.353-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='RSS'/><title type='text'>Easy way to Parse RSS in PHP</title><content type='html'>&lt;div&gt;&lt;p&gt;Here is some simple code for parsing RSS 2 in PHP. It's so easy, I can't believe it.&lt;/p&gt; &lt;pre&gt;&amp;lt;?php&lt;/pre&gt;&lt;pre&gt;     $doc = new DOMDocument();&lt;/pre&gt;&lt;pre&gt;   $doc-&amp;gt;load('http://www.softarea51.com/rss/windows/Web_Development/XML_CSS_Utilities.xml');&lt;/pre&gt;&lt;pre&gt;   $arrFeeds = array();&lt;/pre&gt;&lt;pre&gt;   foreach ($doc-&amp;gt;getElementsByTagName('item') as $node) {&lt;/pre&gt;&lt;pre&gt;    $itemRSS = array (&lt;/pre&gt;&lt;pre&gt;      'title' =&amp;gt; $node-&amp;gt;getElementsByTagName('title')-&amp;gt;item(0)-&amp;gt;nodeValue,&lt;/pre&gt;&lt;pre&gt;     'desc' =&amp;gt; $node-&amp;gt;getElementsByTagName('description')-&amp;gt;item(0)-&amp;gt;nodeValue,&lt;/pre&gt;&lt;pre&gt;     'link' =&amp;gt; $node-&amp;gt;getElementsByTagName('link')-&amp;gt;item(0)-&amp;gt;nodeValue,&lt;/pre&gt;&lt;pre&gt;     'date' =&amp;gt; $node-&amp;gt;getElementsByTagName('pubDate')-&amp;gt;item(0)-&amp;gt;nodeValue&lt;/pre&gt;&lt;pre&gt;     );&lt;/pre&gt;&lt;pre&gt;    array_push($arrFeeds, $itemRSS);&lt;/pre&gt;&lt;pre&gt;   }&lt;/pre&gt;&lt;pre&gt;?&amp;gt;  &lt;/pre&gt;&lt;br /&gt;&lt;p&gt; Thanks to: &lt;a target="_blank" href="http://www.softarea51.com/tutorials/parse_rss_with_php.html"&gt;How to parse RSS feeds with PHP&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-3892991015222532708?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/3892991015222532708/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=3892991015222532708' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3892991015222532708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3892991015222532708'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/07/easy-way-to-parse-rss-in-php.html' title='Easy way to Parse RSS in PHP'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-8238158604839969163</id><published>2009-06-22T15:47:00.001-04:00</published><updated>2009-06-22T15:49:11.335-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Buttons'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>CSS Image Replacement for Buttons</title><content type='html'>Yes, you could just use the input type="image" but if you want to replace buttons with images purely with CSS, this is a great method.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.ampsoft.net/webdesign-l/image-button.html" target="_blank"&gt;http://www.ampsoft.net/webdesign-l/image-button.html&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;A quick note, this won't work in IE6 unless you set your button as a BUTTON not an INPUT.  This is a very important point.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-8238158604839969163?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/8238158604839969163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=8238158604839969163' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8238158604839969163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8238158604839969163'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/06/css-image-replacement-for-buttons.html' title='CSS Image Replacement for Buttons'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-9025027480804148226</id><published>2009-06-19T09:18:00.004-04:00</published><updated>2009-06-19T09:52:44.573-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Keep Footer at the Absolute Bottom of Page</title><content type='html'>Have you ever wanted to have a footer always be on the bottom of the page, even if the content of the page wasn't very tall?  Usually people use javascript, but below is a way to do it with only CSS.  This even works on IE6!&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Take a look here: &lt;a target="_blank" href="http://gtwebdev.com/workshop/layout/footer-bottom.php"&gt;Footer at the Bottom of the Viewport&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;P.S. if you view source on the above link, you will see all the CSS and HTML you need.  It works great!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-9025027480804148226?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/9025027480804148226/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=9025027480804148226' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/9025027480804148226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/9025027480804148226'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/06/keep-footer-at-absolute-bottom-of-page.html' title='Keep Footer at the Absolute Bottom of Page'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-482789542446606930</id><published>2009-06-03T11:20:00.003-04:00</published><updated>2009-06-03T11:22:38.366-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Navigation'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><category scheme='http://www.blogger.com/atom/ns#' term='jQuery'/><title type='text'>Nice Drop Down Menues</title><content type='html'>I've been on a quest for a long time to find a good, reliable and customizable dropdown menu.  I've found some but this is a great one to try out:&lt;div&gt;&lt;br /&gt;&lt;a target="_blank" href="http://www.noupe.com/tutorial/drop-down-menu-jquery-css.html"&gt;Sexy Drop Down Menu w/ jQuery &amp;amp; CSS&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-482789542446606930?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/482789542446606930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=482789542446606930' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/482789542446606930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/482789542446606930'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/06/nice-drop-down-menues.html' title='Nice Drop Down Menues'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-7255021073356874758</id><published>2009-05-28T16:54:00.002-04:00</published><updated>2009-05-28T16:57:07.240-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP Mail on Windows Server</title><content type='html'>I had a weird problem with my PHP mail() function on a windows server.  When I was trying to send the emails, the email headers would show up in the body of the email itself.  After a lot of frustration, I figured out a solution that worked for me.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;After each header, you usually add a "\r\n".  It seems like the \n was giving us the problem so I took it off.  So after each header I had instead "\r".  It worked... so there you go.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For example:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;$headers = 'From: someemail@email.com' . "\r";&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;$headers .= 'MIME-Version: 1.0' . "\r";&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;$headers .= 'Reply-To: replytoemail@email.com' . "\r";&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-7255021073356874758?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/7255021073356874758/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=7255021073356874758' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/7255021073356874758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/7255021073356874758'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/05/php-mail-on-windows-server.html' title='PHP Mail on Windows Server'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-8429015502698325796</id><published>2009-05-20T13:55:00.003-04:00</published><updated>2009-05-20T13:57:34.496-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Ajax'/><category scheme='http://www.blogger.com/atom/ns#' term='jQuery'/><title type='text'>Ajax with jQuery</title><content type='html'>jQuery makes it really easy to implement AJAX.  Check out this out for more information: &lt;a target="_blank" href="http://docs.jquery.com/Ajax"&gt;http://docs.jquery.com/Ajax&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you're not sure what jQuery is or AJAX, check out some of our other posts in those categories.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-8429015502698325796?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/8429015502698325796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=8429015502698325796' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8429015502698325796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8429015502698325796'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/05/ajax-with-jquery.html' title='Ajax with jQuery'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-6132188379047074431</id><published>2009-05-12T11:05:00.002-04:00</published><updated>2009-05-12T11:06:42.720-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Social Bookmarking'/><title type='text'>Social Bookmarking Links</title><content type='html'>Here is a great resource if you'd like to add buttons to your site for social networking links.  For example, if you have an article and want to create a Digg This link.  There are a lot of ways to do this but here is one simple way:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a target="_blank" href="http://www.exploding-boy.com/2006/01/09/add-links-for-delicious-digg-and-more-to-blog-posts/"&gt;Add Links for Del.icio.us, Digg, and More to Blog Posts&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-6132188379047074431?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/6132188379047074431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=6132188379047074431' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6132188379047074431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6132188379047074431'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/05/social-bookmarking-links.html' title='Social Bookmarking Links'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-1168003220200529453</id><published>2009-04-28T09:38:00.001-04:00</published><updated>2009-04-28T09:40:33.081-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='CMS'/><title type='text'>CMS Recommendation: ExpressionEngine</title><content type='html'>I just wanted to give a quick recommendation to a Content Management System that we've been using and have found to be really great.  With all due respect to the druple or joomla-lovers, Expression Engine is a much cleaner way to go.  It does come with a premium, but they have a core version for free which is more than enough for most smaller sites.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.expressionengine.com/" target="_blank"&gt;http://www.expressionengine.com&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Check it out.  Like all CMS's there is a learning curve but this CMS gets my recommendation.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-1168003220200529453?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/1168003220200529453/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=1168003220200529453' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1168003220200529453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1168003220200529453'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/04/cms-recommendation-expressionengine.html' title='CMS Recommendation: ExpressionEngine'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-4526654035676136007</id><published>2009-04-28T09:30:00.003-04:00</published><updated>2009-05-05T13:50:05.802-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>Ternary Operator (Short IF Statements) in PHP</title><content type='html'>This is a cool little 'trick' if you want a quick IF statement in PHP.  You'd use the Ternary Operator which would evaluate similar to the IF operator.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Syntax is like this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(255, 128, 0);"&gt;// Example usage for: Ternary Operator&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$action &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;= ("john" != "frank"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;) ? &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'john isnt frank' &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;: &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;&lt;span class="Apple-style-span" style="color: rgb(221, 0, 0); "&gt;'john is frank'&lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So in this case, the output 'john isnt frank' would be saved to $action.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The first portion of the before the ? is what is being evaluated.  So we check if the string "john" is not equal to "frank".&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Between the ? and the : is what to do if we returned TRUE.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Between the : and the ; is what to do if we returned FALSE.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Since I have $action = at the beginning, the output is saved to that variable.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For more info on this, see the PHP documentation: &lt;a href="http://uk2.php.net/operators.comparison" target="_blank"&gt;http://uk2.php.net/operators.comparison&lt;/a&gt; (you'll need to scroll down a little)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-4526654035676136007?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/4526654035676136007/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=4526654035676136007' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4526654035676136007'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4526654035676136007'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/04/ternary-operator-short-if-statements-in.html' title='Ternary Operator (Short IF Statements) in PHP'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-2329350557869252351</id><published>2009-04-08T14:29:00.004-04:00</published><updated>2009-04-08T14:32:11.558-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Fonts'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Web-safe Fonts</title><content type='html'>We stumbled upon a great resource for web safe fonts (okay... we just googled it, but still...).&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Take a look at this site, it is a wonderful resource and will help you match your fonts to ones that work on all computers.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a target="_blank" href="http://www.ampsoft.net/webdesign-l/WindowsMacFonts.html"&gt;Common fonts to all versions of Windows and Mac equivalents (Browser safe fonts)&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-2329350557869252351?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/2329350557869252351/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=2329350557869252351' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2329350557869252351'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2329350557869252351'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/04/web-safe-fonts.html' title='Web-safe Fonts'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-6632734994985272482</id><published>2009-04-08T09:59:00.002-04:00</published><updated>2009-04-08T10:01:42.611-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>CSS Position Help</title><content type='html'>Most people know this, but for those who are struggling or just need a reminder, the below link is a great resource to understanding positioning in CSS.  Take a look.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.barelyfitz.com/screencast/html-training/css/positioning/" target="_blank"&gt;Learn CSS Positioning in Ten Steps: position static relative absolute float&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-6632734994985272482?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/6632734994985272482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=6632734994985272482' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6632734994985272482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6632734994985272482'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/04/css-position-help.html' title='CSS Position Help'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-1333008798546587318</id><published>2009-03-11T10:38:00.002-04:00</published><updated>2009-03-11T10:40:34.231-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='HTACCESS'/><title type='text'>Editing .htaccess with PHP</title><content type='html'>Although this isn't necessarily recommended, sometimes it is needed.  Basically, we'd use PHP to edit our htaccess document to set permissions or redirects or whatever else.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here is a post about doing it: &lt;a target="_blank" href="http://forums.devshed.com/php-development-5/editing-htaccess-with-php-552406.html"&gt;Editing .htaccess with Php - Dev Shed&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-1333008798546587318?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/1333008798546587318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=1333008798546587318' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1333008798546587318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1333008798546587318'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/03/editing-htaccess-with-php.html' title='Editing .htaccess with PHP'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-1538000808875944986</id><published>2009-03-04T10:22:00.003-05:00</published><updated>2009-04-27T16:02:32.995-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ActionScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><title type='text'>Flash - Old School Actionscript Tweening</title><content type='html'>ON the MovieClip itself&lt;br /&gt;&lt;br /&gt;/* */&lt;br /&gt;onClipEvent(load) {&lt;br /&gt;    mytime = _parent.timeSlower;&lt;br /&gt;    mybounce = _parent.bounceSlower;&lt;br /&gt;}&lt;br /&gt;onClipEvent (load) {&lt;br /&gt;    physics = [mybounce,mytime];&lt;br /&gt;    start_x = this._x;&lt;br /&gt;    start_y = this._y;&lt;br /&gt;    start_w = this._width;&lt;br /&gt;    start_h = this._height;&lt;br /&gt;    start_xscale = this._xscale;&lt;br /&gt;    start_yscale = this._yscale;&lt;br /&gt;    start_a = this._alpha;&lt;br /&gt;   &lt;br /&gt;    xspeed = 0;&lt;br /&gt;    yspeed = 0;&lt;br /&gt;    aspeed = 0;&lt;br /&gt;    wspeed = 0;&lt;br /&gt;    hspeed = 0;&lt;br /&gt;    xscalespeed = 0;&lt;br /&gt;   &lt;br /&gt;    //this._width = (this._width*1.2);&lt;br /&gt;    //this._height = (this._height*1.2);&lt;br /&gt;   &lt;br /&gt;    //this._width = this._width/2;&lt;br /&gt;}&lt;br /&gt;onClipEvent (enterFrame) {&lt;br /&gt;    xscalespeed = ((start_xscalespeed-this._xscale)*physics[0])+(xscalespeed*physics[1]);&lt;br /&gt;    this._xscale += xscalespeed;&lt;br /&gt;   &lt;br /&gt;    yscalespeed = ((start_yscalespeed-this._yscale)*physics[0])+(yscalespeed*physics[1]);&lt;br /&gt;    this._yscale += yscalespeed;   &lt;br /&gt;   &lt;br /&gt;    wspeed = ((start_w-this._width)*physics[0])+(wspeed*physics[1]);&lt;br /&gt;    this._width += wspeed;&lt;br /&gt;   &lt;br /&gt;    hspeed = ((start_h-this._height)*physics[0])+(hspeed*physics[1]);&lt;br /&gt;    this._height += hspeed;&lt;br /&gt;   &lt;br /&gt;    xspeed = ((start_x-this._x)*physics[0])+(xspeed*physics[1]);&lt;br /&gt;    this._x += xspeed;&lt;br /&gt;    yspeed = ((start_y-this._y)*physics[0])+(yspeed*physics[1]);&lt;br /&gt;    this._y += yspeed;&lt;br /&gt;    aspeed = ((start_a-this._alpha)*physics[0])+(aspeed*physics[1]);&lt;br /&gt;    this._alpha += aspeed;&lt;br /&gt;}&lt;br /&gt;/**/&lt;br /&gt;&lt;br /&gt;Still need to establish the "time" and "bounce" variables for consistency across the board.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-1538000808875944986?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1538000808875944986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1538000808875944986'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/03/flash-old-school-actionscript-tweening.html' title='Flash - Old School Actionscript Tweening'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-2487606789307591374</id><published>2009-02-16T17:20:00.003-05:00</published><updated>2009-02-16T17:23:53.916-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP'/><category scheme='http://www.blogger.com/atom/ns#' term='MSSQL'/><title type='text'>ASP's Fast Way To Pull Data from Database</title><content type='html'>This is a great way to pull in all records from a (MSSQL) database in ASP.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;use the GetString() function for your record set!  It is pretty simple and really cool.  Here is my example:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;set rs = Server.CreateObject("ADODB.Recordset")&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;myvariable = rs.GetString (2, , vbTab, vbCrLf, "Null")&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here is the info on the function GetString:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;string = recordsetobject.GetString (StringFormat, NumRows, ColumnDelimiter, RowDelimiter, NullExpr)&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For more details go here: &lt;a target="_blank" href="http://www.devguru.com/Technologies/ado/quickref/recordset_getstring.html"&gt;DevGuru ADO Recordset::GetString Method&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-2487606789307591374?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/2487606789307591374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=2487606789307591374' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2487606789307591374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2487606789307591374'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/02/asps-fast-way-to-pull-data-from.html' title='ASP&apos;s Fast Way To Pull Data from Database'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-3160406178194190835</id><published>2009-02-16T17:12:00.004-05:00</published><updated>2009-02-16T17:19:17.938-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP'/><category scheme='http://www.blogger.com/atom/ns#' term='MSSQL'/><title type='text'>MSSQL Searching for Datetime value</title><content type='html'>This is a great resource for trying to make a query in SQL Server for the datetime data type.  Use this if you're trying to find all entries from a date like yesterday, last month, or anything else.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a target="_blank" href="http://www.databasejournal.com/features/mssql/article.php/2209321/Working-with-SQL-Server-DateTime-Variables-Part-Three---Searching-for-Particular-Date-Values-and-Ranges.htm"&gt;Working with SQL Server Date/Time Variables: Part Three - Searching for Paritcular Date Values and Ranges&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;What I found even more useful is this little code:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;query = "SELECT * FROM your_table WHERE DATEDIFF(dd, your_date_field, GETDATE()) = 0"&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;What that does, is get you all entries from your_table where your_date_field and the current date (today's date) are not different.  The 'dd' means day, so it is comparing the day.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This will get all entries from yesterday:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;query = "SELECT * FROM users WHERE DATEDIFF(dd, datecreated, GETDATE()) = 1"&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And this will get from last week:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;query = "SELECT * FROM users WHERE DATEDIFF(ww, datecreated, GETDATE()) = 1"&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For a full list of what DATEDIFF does take a look at this: &lt;a href="http://msdn.microsoft.com/en-us/library/ms189794.aspx" target="_blank"&gt;DATEDIFF (Transact-SQL)&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Have fun!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-3160406178194190835?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/3160406178194190835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=3160406178194190835' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3160406178194190835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3160406178194190835'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/02/mssql-searching-for-datetime-value.html' title='MSSQL Searching for Datetime value'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-8561528311907767340</id><published>2009-02-16T17:04:00.004-05:00</published><updated>2009-02-16T17:11:07.274-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP'/><title type='text'>Fast String in ASP</title><content type='html'>ASP is an old framwork and really outdated but sometimes we still need to use it.  One major problem is the handling of strings.  We recently worked on a project with ASP and tried to use the standard string method to create some reports.  Basically, a report with 1,000 entries timedout, until we set the server timeout to 10 minutes...!&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So here is a way to overcome this.  This is a class that you can use if you want to create strings and need to concatenate them.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;Class FastString&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;Dim stringArray,growthRate,numItems&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;Private Sub Class_Initialize()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;growthRate = 50: numItems = 0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;ReDim stringArray(growthRate)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;End Sub&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;Public Sub Append(ByVal strValue)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;' next line prevents type mismatch error if strValue is null. Performance hit is negligible.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;strValue=strValue &amp;amp; ""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;If numItems &gt; UBound(stringArray) Then ReDim Preserve stringArray(UBound(stringArray) + growthRate)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;stringArray(numItems) = strValue:numItems = numItems + 1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;End Sub&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;Public Sub Reset&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;Erase stringArray&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;Class_Initialize&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;End Sub&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;Public Function concat()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;Redim Preserve stringArray(numItems)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;concat = Join(stringArray, "")&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;End Function&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;End Class &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I will give full credit to: &lt;a href="http://www.eggheadcafe.com/articles/20011227.asp" target="_blank"&gt;A Fast String Class for ASP Pages&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you want to implement this class, do something like this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;Set mystring = New FastStrign&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;mystring.Append("My Info")&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;mystring.concat()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;Set mystring = nothing&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This will add "My Info" to the string and then print it.  The last line is to detroy the old thing, you can also use the build in erase function.  This will make concatenating of strings much faster.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Remember I said 10 minutes...? Now it takes 20 seconds to create the report!&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-8561528311907767340?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/8561528311907767340/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=8561528311907767340' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8561528311907767340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8561528311907767340'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/02/fast-string-in-asp.html' title='Fast String in ASP'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-8988571444336166261</id><published>2009-02-12T16:16:00.005-05:00</published><updated>2009-02-12T17:08:08.884-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='RSS'/><category scheme='http://www.blogger.com/atom/ns#' term='XML'/><title type='text'>Resources for RSS Feed Creation</title><content type='html'>Here are some resources on how to create a RSS 2.0 feed.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a target="_blank" href="http://www.petefreitag.com/item/465.cfm"&gt;Howto Create an RSS 2.0 Feed&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a target="_blank" href="http://www.rssboard.org/rss-specification"&gt;RSS 2.0 Specifications &lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a target="_blank" href="http://tiffanybbrown.com/2005/12/22/dynamic-rss-feeds-using-php-mysql-and-apache/"&gt;Dynamic RSS in PHP&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a target="_blank" href="http://www.petefreitag.com/item/208.cfm"&gt;CSS Styles for RSS&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-8988571444336166261?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/8988571444336166261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=8988571444336166261' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8988571444336166261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8988571444336166261'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/02/resources-for-rss-feed-creation.html' title='Resources for RSS Feed Creation'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-4843480962194373437</id><published>2009-02-12T15:59:00.004-05:00</published><updated>2009-02-12T16:06:57.636-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Forms'/><category scheme='http://www.blogger.com/atom/ns#' term='SEO'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Automatic and Dynamic Title URLs from Titles using Javascript</title><content type='html'>&lt;div&gt;This is a handy little javascript snipplet that will convert text in one text field to url friendly text in another.  This is very useful if you're trying to automatically create title URLs from the title of your post.  This helps with search engine optimization by giving you friendly URLs.  Below is the javascript and a test form.  You can copy it all, paste it, and test it.&lt;/div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;br /&gt;function urltitle(title)&lt;br /&gt;{&lt;/span&gt;&lt;/p&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; // Create the url friendly title&lt;br /&gt;var url = title&lt;br /&gt;.toLowerCase()   //change everything to lowercase&lt;br /&gt;.replace(/^\s+|\s+$/g, "") //trim leading and trailing spaces&lt;br /&gt;.replace(/[&amp;amp;]+/g, "and") //replace ampersand&lt;br /&gt;.replace(/[#]+/g, "sharp") //replace pound&lt;br /&gt;.replace(/[@]+/g, "at")  //replace at&lt;br /&gt;.replace(/[%]+/g, "percent") //replace percent&lt;br /&gt;.replace(/[+]+/g, "plus") //replace plus&lt;br /&gt;.replace(/[-|\s]+/g, "_") //replace spaces and hyphens to underscore&lt;br /&gt;.replace(/[^a-z0-9_]+/g, "") //remove all non-alphanumeric characters except the underscore&lt;br /&gt;.replace(/[_]+/g, "_")  //remove duplicate underscores&lt;br /&gt;.replace(/^_+|_+$/g, "") //trim leading and trailing underscores&lt;br /&gt;;&lt;br /&gt;document.getElementById('title_url').value = url;&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&amp;lt;input type="text" onkeyup="javascript:urltitle(this.value);" /&amp;gt;&lt;br /&gt;&amp;lt;input type="text" id="title_url" /&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div&gt;As we usually give credits for what we find, this is where we got the original script before modifying it: &lt;a href="http://snippets.dzone.com/posts/show/5629" target="_blank"&gt;Rewrite input to friendly URL&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-4843480962194373437?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/4843480962194373437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=4843480962194373437' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4843480962194373437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4843480962194373437'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/02/automatic-and-dynamic-title-urls-from.html' title='Automatic and Dynamic Title URLs from Titles using Javascript'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-7923955126811888601</id><published>2009-02-12T09:21:00.002-05:00</published><updated>2009-02-12T09:28:02.132-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><category scheme='http://www.blogger.com/atom/ns#' term='Firefox'/><title type='text'>Hide Link Dotted Borders in Firefox</title><content type='html'>&lt;div&gt;You may have noticed that links in firefox have a light dotted border around them.  It was intended for accessibility, so that you'd know which link you're currently focused on.  Try tabbing through a webpage and you'll see its use.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Anyway, sometimes the border is annoying, ugly, and useless.  In such cases, you can remove the border by using this piece of CSS:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;outline-style:none;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-7923955126811888601?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/7923955126811888601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=7923955126811888601' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/7923955126811888601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/7923955126811888601'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/02/hide-link-dotted-borders-in-firefox.html' title='Hide Link Dotted Borders in Firefox'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-8864286333461117786</id><published>2009-02-10T12:30:00.003-05:00</published><updated>2009-02-10T12:33:46.311-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Simple Javascript Back Link</title><content type='html'>Alright, this is pretty simply and most people know it but hey, never hurts to post.&lt;div&gt;&lt;br /&gt;If you want to create a link that goes back to the previous page (just like the browser back button) simply use this code in your link tag:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;href="javascript: history.go(-1)"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="javascript: history.go(-1)"&gt;&lt;div&gt;&lt;/div&gt;&lt;/a&gt;&lt;a href="javascript: history.go(-1)"&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-8864286333461117786?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/8864286333461117786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=8864286333461117786' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8864286333461117786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8864286333461117786'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/02/simply-javascript-back-link.html' title='Simple Javascript Back Link'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-3863901850779146295</id><published>2009-01-29T10:30:00.007-05:00</published><updated>2009-07-24T15:46:43.301-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ActionScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><title type='text'>Dynamic buttons in Flash using ActionScript 2.0</title><content type='html'>I am often needing Flash to create dynamic buttons from an Array (or external TXT (text) document).  Here's how I do it:&lt;br /&gt;&lt;br /&gt;1. Make your button an actual MovieClip on the stage however you want them all to look/work.  Create a dynamic text field (center justified - or whatever) within the button with the instance property of "text_txt" for this example.  (You can name it whatever you want, but you'll need to change some of the code below).&lt;br /&gt;&lt;br /&gt;2. In the library find your MovieClip.  Open the Symbol properties dialog.&lt;br /&gt;&lt;br /&gt;3. Select the "export of actionscript" check box.  Identifier "myButton"... again, for this example only. Click OK.&lt;br /&gt;&lt;br /&gt;4. Now return to the stage and in frame one of a layer, I've named my top-most layer "actions".  Copy and paste the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;for(i=0; i&lt;however_many_buttons_your_array_is;&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    target = this.attachMovie("myButton", "myButton"+i, i, {_x:10, _y:30*i} );&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    target.text_txt.text = nav[i];&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    target.myLink = url[i];&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    trace(myLink);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    target.nr = i;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    target.onPress = function(){&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        //getURL(this.myLink);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        trace("Hi, I'm "+this._name+" and my number is "+this.nr+". The link is: " + this.myLink);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;With some extra work we can make this a horizontal menu, getting the width of each text box and moving the rest.... I'll post that another time.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;5. I created an Array that I want to use for the labels of my buttons.  Eventually I will pull these labels from a database table, but for now, paste this info above the previous code.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;var nav:Array = Array();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;nav[0] = "nav 1";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;nav[1] = "nav 2;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;nav[2] = "nav 3";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;nav[3] = "nav 4";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;nav[4] = "nav 5";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;nav[5] = "nav 6";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;nav[6] = "nav 7";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;6. Now we need these links to do something, right?  So let's create an Array for our URLs.  Paste this array just below the previous but before the button code "for" stuff.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;var url:Array = Array();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;url[0] = "http://www.adobe.com";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;url[1] = "my link 1";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;url[2] = "my link 2";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;url[3] = "my link 3";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;url[4] = "my link 4";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;url[5] = "my link 5";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;url[6] = "my link 6";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;6. Ta da!  That's all that is to it.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;7. Publish your file.&lt;/span&gt;&lt;/nav.length;&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-3863901850779146295?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/3863901850779146295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=3863901850779146295' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3863901850779146295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3863901850779146295'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/01/dynamic-buttons-in-flash-using.html' title='Dynamic buttons in Flash using ActionScript 2.0'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-4334108923340976278</id><published>2009-01-27T11:52:00.002-05:00</published><updated>2009-01-27T11:54:17.721-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Forms'/><category scheme='http://www.blogger.com/atom/ns#' term='Validation'/><title type='text'>Simple Javascript email verification</title><content type='html'>Here is a simple email verification script in Javascript.  Just pass in the email address and it will return true or false depending on if the email is valid.  It will also do an alert popup if it is invalid.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;function echeck(str) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;var at="@"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;var dot="."&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;var lat=str.indexOf(at)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;var lstr=str.length&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;var ldot=str.indexOf(dot)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;if (str.indexOf(at)==-1){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;   alert("Invalid email address of attendee.")&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;   return false&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;   alert("Invalid email address of attendee.")&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;   return false&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    alert("Invalid email address of attendee.")&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    return false&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; if (str.indexOf(at,(lat+1))!=-1){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    alert("Invalid email address of attendee.")&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    return false&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    alert("Invalid email address of attendee.")&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    return false&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; if (str.indexOf(dot,(lat+2))==-1){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    alert("Invalid email address of attendee.")&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    return false&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; if (str.indexOf(" ")!=-1){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    alert("Invalid email address of attendee.")&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;    return false&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; &lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; return true&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Got this thanks to: &lt;a href="http://www.smartwebby.com/DHTML/email_validation.asp" target="_blank"&gt;Javascript Email Address Validation&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-4334108923340976278?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/4334108923340976278/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=4334108923340976278' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4334108923340976278'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4334108923340976278'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/01/simple-javascript-email-verification.html' title='Simple Javascript email verification'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-6483843371538007022</id><published>2009-01-26T12:06:00.002-05:00</published><updated>2009-01-26T12:09:54.081-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Forms'/><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='jQuery'/><title type='text'>Autocomplete textfields</title><content type='html'>In my search for a cool autocomplete script for my text fields, I came across one that I'd actually recommend.  If you aren't familiar with autocomplete scripts, just start typing a url into the latest version of firefox and you'll see what I mean.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Get the script:&lt;a href="http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/" target="_blank"&gt; jQuery plguin: Autocomplete&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The script uses jQuery, which is a javascript library.  It is really simple to use, everything is included in the download.  It comes with a demo page and you can use to make it work the way you want it.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-6483843371538007022?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/6483843371538007022/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=6483843371538007022' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6483843371538007022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6483843371538007022'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/01/autocomplete-textfields.html' title='Autocomplete textfields'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-6330387960924228967</id><published>2009-01-21T16:37:00.001-05:00</published><updated>2009-01-21T16:40:43.606-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ActionScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><title type='text'>Flash Random Number generator</title><content type='html'>&lt;pre&gt;&lt;span style="font-family: arial;"&gt;A little actionscript to get a random number (n) is this case.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;low = 0;&lt;br /&gt;high = 360;&lt;br /&gt;&lt;br /&gt;function randRange(min:Number, max:Number):Number {&lt;br /&gt;   var randomNum:Number = Math.floor(Math.random() * (max - min + 1)) + min;&lt;br /&gt;   return randomNum;&lt;br /&gt;}&lt;br /&gt;for (var i = 0; i &lt; 1; i++) {&lt;br /&gt;   var n:Number = randRange(low, high)&lt;br /&gt;   trace(n);&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-6330387960924228967?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/6330387960924228967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=6330387960924228967' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6330387960924228967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6330387960924228967'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/01/flash-random-number-generator.html' title='Flash Random Number generator'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-6368051909640075756</id><published>2009-01-14T15:11:00.001-05:00</published><updated>2009-01-14T15:12:34.239-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Why I hate Blogger!</title><content type='html'>This is just a rant but blogger is terrible.  It has the worst text editor ever created for a blogging software.  The list can go on but I think we're going to switch to something new as soon as we have some free time (if ever!).&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Wow, I just need to vent because it is a pain to use blogger.  I don't recommend it!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-6368051909640075756?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/6368051909640075756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=6368051909640075756' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6368051909640075756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6368051909640075756'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/01/why-i-hate-blogger.html' title='Why I hate Blogger!'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-982155861603220586</id><published>2009-01-14T15:03:00.003-05:00</published><updated>2009-01-14T15:10:55.221-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Forms'/><category scheme='http://www.blogger.com/atom/ns#' term='IE6 bugs'/><title type='text'>IE6 Problem with Form Submit Image Buttons</title><content type='html'>&lt;p&gt;A lot of times we use images as our submit buttons for forms.  I'm sure you've seen it a lot.  Well, say you wanted to test if the form was submitted and used the standard way, lets say in PHP, of seeing if the submit button was sent, for example like this:&lt;/p&gt;&lt;p&gt;if (isset($_REQUEST['mysubmitbutton']))&lt;br /&gt; { ...}&lt;/p&gt;&lt;p&gt;With IE6 this wouldn't work if your submit button was an image.  So if you had this as your submit button:&lt;/p&gt;&lt;p&gt;&amp;lt;input name="mysubmitbutton" type="image" value="1" src="someimage.png" alt="" /&amp;gt;&lt;/p&gt;&lt;p&gt;Then your script wouldn't work.  The reason is that IE6 WILL NOT send over the variable mysubmitbutton.&lt;/p&gt;&lt;p&gt;The workaround is to know that IE6 will send over other information (along with all other browsers).  It sends the x and y coordinates of where you clicked on the image.  So you'll see mysubmitbutton_x and mysubmitbutton_y.  So if you modify your code to look for either of these variables, you'll be good to go!&lt;/p&gt;&lt;p&gt;Credit is to be given to this discussion forum: &lt;a href="http://bytes.com/groups/php/4451-differences-form-handling-btw-mozilla-ie" target="_blank"&gt;Differences in form handling btw Mozilla and IE?&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-982155861603220586?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/982155861603220586/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=982155861603220586' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/982155861603220586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/982155861603220586'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/01/ie6-problem-with-form-submit-image.html' title='IE6 Problem with Form Submit Image Buttons'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-3409852203271970121</id><published>2009-01-08T14:25:00.003-05:00</published><updated>2009-01-08T14:29:55.564-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Referrer'/><category scheme='http://www.blogger.com/atom/ns#' term='Session'/><title type='text'>Get referrer with PHP</title><content type='html'>&lt;div&gt;Here is some code to find out the referrer to a page in PHP.  This can be very useful if you want to redirect back after login or something like that.  You can also set it up to make sure a visitor came to the page from within your site or something like that.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&amp;lt;?php&lt;br /&gt;session_start();&lt;br /&gt;&lt;br /&gt;if(!isset($_SESSION[’referrer’])){&lt;br /&gt;&lt;br /&gt;//get the referrer&lt;br /&gt;if ($_SERVER[’HTTP_REFERER’]){&lt;br /&gt;$referrer = $_SERVER[’HTTP_REFERER’];&lt;br /&gt;}else{&lt;br /&gt;$referrer = “unknown”;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;//save it in a session&lt;br /&gt;$_SESSION[’referrer’] = $referrer; // store session data&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Hope this is useful.  The reference is: &lt;a href="http://www.vonfelten.com/blog/2007/06/05/referral-url-from-session-using-php/" target="_blank"&gt;Get a referral URL from the session using PHP&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-3409852203271970121?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/3409852203271970121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=3409852203271970121' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3409852203271970121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3409852203271970121'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2009/01/get-referrer-with-php.html' title='Get referrer with PHP'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-2231240121525563188</id><published>2008-12-22T09:45:00.002-05:00</published><updated>2008-12-22T09:49:00.261-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Forms'/><title type='text'>Making a Link Select a Select Box in Javascript</title><content type='html'>I needed to have a link select an option within a selectbox.  What I wanted to do was have a bunch of links out there and if a user clicks one, move down the page and have a value in my selectbox already selected according to that link.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I found a solution online that worked great.  It uses javascript, but works wonderfully.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Since blogger doesn't let me paste code easily, I'll just direct you to the link.  If it ends up being dead in the future, please leave a comment and I'll post the code.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here is the reference: &lt;a target="_blank" href="http://www.willmaster.com/library/demo/ImageClickSelectsDropdownItem/wallpaper-dropdown.html"&gt;http://www.willmaster.com/library/demo/ImageClickSelectsDropdownItem/wallpaper-dropdown.html&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-2231240121525563188?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/2231240121525563188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=2231240121525563188' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2231240121525563188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2231240121525563188'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/12/making-link-select-select-box-in.html' title='Making a Link Select a Select Box in Javascript'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-1085735950189337491</id><published>2008-12-16T09:27:00.002-05:00</published><updated>2008-12-16T09:31:01.287-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>Server Root Path with PHP</title><content type='html'>Here is a simple way to get the server root path with PHP:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;$_SERVER['DOCUMENT_ROOT']&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Say you want to check if a file exists, you could do this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;file_exists($_SERVER['DOCUMENT_ROOT']."/yourfolder/yourfile.extension")&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Putting this in an IF statement will see if the file exists.  If it does, file_exists will return true, else it will return false.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-1085735950189337491?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/1085735950189337491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=1085735950189337491' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1085735950189337491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1085735950189337491'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/12/server-root-path-with-php.html' title='Server Root Path with PHP'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-3652154417195649906</id><published>2008-12-05T10:14:00.001-05:00</published><updated>2008-12-05T10:15:59.679-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>Trim Whitespace in PHP</title><content type='html'>Trim is a nice built-in function for PHP.  My default it will trim off the whitespace from the beginning and end of a string.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h3 class="title"&gt;Description&lt;/h3&gt;   &lt;div class="methodsynopsis dc-description"&gt;    &lt;span class="type"&gt;string&lt;/span&gt; &lt;span class="methodname"&gt;&lt;b&gt;&lt;b&gt;trim&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;     ( &lt;span class="methodparam"&gt;&lt;span class="type"&gt;string&lt;/span&gt; &lt;tt class="parameter"&gt;$str&lt;/tt&gt;&lt;/span&gt;    [, &lt;span class="methodparam"&gt;&lt;span class="type"&gt;string&lt;/span&gt; &lt;tt class="parameter"&gt;$charlist&lt;/tt&gt;&lt;/span&gt;   ] )&lt;/div&gt;    &lt;p class="para rdfs-comment"&gt;    This function returns a string with whitespace stripped from the    beginning and end of &lt;i&gt;&lt;tt class="parameter"&gt;str&lt;/tt&gt;&lt;/i&gt; .    Without the second parameter,    &lt;b&gt;trim()&lt;/b&gt; will strip these characters:        &lt;/p&gt; &lt;ul&gt;      &lt;li class="listitem"&gt;      &lt;span class="simpara"&gt;       " " (&lt;acronym title="American Standard Code for Information Interchange"&gt;ASCII&lt;/acronym&gt; &lt;i&gt;32&lt;/i&gt;        (&lt;i&gt;0x20&lt;/i&gt;)), an ordinary space.      &lt;/span&gt;     &lt;/li&gt;     &lt;li class="listitem"&gt;      &lt;span class="simpara"&gt;       "\t" (&lt;acronym title="American Standard Code for Information Interchange"&gt;ASCII&lt;/acronym&gt; &lt;i&gt;9&lt;/i&gt;        (&lt;i&gt;0x09&lt;/i&gt;)), a tab.      &lt;/span&gt;     &lt;/li&gt;     &lt;li class="listitem"&gt;      &lt;span class="simpara"&gt;       "\n" (&lt;acronym title="American Standard Code for Information Interchange"&gt;ASCII&lt;/acronym&gt; &lt;i&gt;10&lt;/i&gt;        (&lt;i&gt;0x0A&lt;/i&gt;)), a new line (line feed).      &lt;/span&gt;     &lt;/li&gt;     &lt;li class="listitem"&gt;      &lt;span class="simpara"&gt;       "\r" (&lt;acronym title="American Standard Code for Information Interchange"&gt;ASCII&lt;/acronym&gt; &lt;i&gt;13&lt;/i&gt;        (&lt;i&gt;0x0D&lt;/i&gt;)), a carriage return.      &lt;/span&gt;     &lt;/li&gt;     &lt;li class="listitem"&gt;      &lt;span class="simpara"&gt;       "\0" (&lt;acronym title="American Standard Code for Information Interchange"&gt;ASCII&lt;/acronym&gt; &lt;i&gt;0&lt;/i&gt;        (&lt;i&gt;0x00&lt;/i&gt;)), the &lt;i&gt;NUL&lt;/i&gt;-byte.      &lt;/span&gt;     &lt;/li&gt;     &lt;li class="listitem"&gt;      &lt;span class="simpara"&gt;        "\x0B" (&lt;acronym title="American Standard Code for Information Interchange"&gt;ASCII&lt;/acronym&gt; &lt;i&gt;11&lt;/i&gt;        (&lt;i&gt;0x0B&lt;/i&gt;)), a vertical tab.      &lt;/span&gt;     &lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.php.net/trim" target="_blank"&gt;http://www.php.net/trim&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-3652154417195649906?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/3652154417195649906/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=3652154417195649906' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3652154417195649906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3652154417195649906'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/12/trim-whitespace-in-php.html' title='Trim Whitespace in PHP'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-4625759795999206995</id><published>2008-12-05T09:40:00.002-05:00</published><updated>2008-12-05T09:45:28.571-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='cURL'/><title type='text'>Returning Content to PHP Variable with cURL</title><content type='html'>I have a few examples of using cURL here in PHP but this parameter allows you to store the content of the selected source to a PHP variable.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Say, for example, you are loading up a page with cURL and want that information store in a PHP variable to use throughout your site.  You can do this by adding the following code to your cURL request:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); // return the page content&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So here is a full block of code:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$curl_handle=curl_init();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;curl_setopt($curl_handle,CURLOPT_URL,'URL_TO_THE_PAGE');&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="white-space: normal; "&gt;curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$savedvalue = curl_exec($curl_handle);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;curl_close($curl_handle);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In this case, $savedvalue will hold all the information returned by that page request.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;cURL is very powerful and worth learning about.  Here is a good resource: &lt;a href="http://php.assistprogramming.com/php-logindownload-file-curl-libraries.html" target="_blank"&gt;PHP login/download file - CURL libraries&lt;/a&gt;.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-4625759795999206995?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/4625759795999206995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=4625759795999206995' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4625759795999206995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4625759795999206995'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/12/returning-content-to-php-variable-with.html' title='Returning Content to PHP Variable with cURL'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-1423066836766954490</id><published>2008-12-04T16:09:00.003-05:00</published><updated>2008-12-04T16:16:34.312-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Redirect'/><title type='text'>PHP Header Redirect</title><content type='html'>Most people may already know this but for some reason I always forget the syntax (I know... its simple...).  So here is how you can redirect to a page with PHP.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Remember: You have to redirect BEFORE loading any HTML tags or header information.  This should always be tested before ANY echo/print tags or any output.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;header&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'Location: http://www.example.com/'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 119, 0); font-family: -webkit-monospace; font-size: 13px;"&gt;&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;exit;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 119, 0); font-family: -webkit-monospace; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Don't forget the exit, this prevents the rest of the page from loading and possibly stopping your redirect.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-1423066836766954490?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/1423066836766954490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=1423066836766954490' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1423066836766954490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1423066836766954490'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/12/php-header-redirect.html' title='PHP Header Redirect'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-7279785397989707861</id><published>2008-12-02T16:44:00.002-05:00</published><updated>2008-12-02T16:46:04.086-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='multiply'/><category scheme='http://www.blogger.com/atom/ns#' term='filters'/><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><category scheme='http://www.blogger.com/atom/ns#' term='errors'/><title type='text'>Flash Multiply Error</title><content type='html'>Flash PNG or any image Multiply Filter error.&lt;br /&gt;&lt;br /&gt;I am having trouble with the "multiply filter" in Flash.  Evidently, I am not the only one.&lt;br /&gt;&lt;br /&gt;Someday, I hope to find an answer.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here's a guy who posted the SAME issue:&lt;br /&gt;&lt;a href="http://www.bitsofstring.org/extra/flash/flashblendingtest.html"&gt;http://www.bitsofstring.org/extra/flash/flashblendingtest.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-7279785397989707861?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/7279785397989707861/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=7279785397989707861' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/7279785397989707861'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/7279785397989707861'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/12/flash-multiply-error.html' title='Flash Multiply Error'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-4265786146859255061</id><published>2008-11-22T00:55:00.002-05:00</published><updated>2008-11-22T00:57:32.054-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scrollbars'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='Firefox'/><title type='text'>FireFox scollbar ... always there?</title><content type='html'>Tired of seeing the site jump back and forth from "non-scrolling" pages to scrolling pages?  Throw this in your CSS:&lt;br /&gt;&lt;br /&gt;html {&lt;br /&gt; overflow: -moz-scrollbars-vertical;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;Now there is always a vertical scroll bar (even "grayed out") present and the site stays in position.  No more kitters.  No more wondering if the CSS code is correct or did something change...&lt;br /&gt;&lt;br /&gt;Done!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-4265786146859255061?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/4265786146859255061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=4265786146859255061' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4265786146859255061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4265786146859255061'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/11/firefox-scollbar-always-there.html' title='FireFox scollbar ... always there?'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-2667011457351075084</id><published>2008-11-21T12:22:00.003-05:00</published><updated>2008-11-21T12:40:19.611-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fixes'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='IE6 bugs'/><title type='text'>IE6 margin fix</title><content type='html'>CSS and IE6 Margin Fix on float!&lt;br /&gt;&lt;br /&gt;When floating a &lt; div &gt; in Internet Explorer 6 and any kind of a margin ... it doubles the amount ... of course it does.  That is exactly what IE6 should do.  Especially since FireFox, and all the others actually set the margin to the number specified.&lt;br /&gt;&lt;br /&gt;This guy posted the fix... it's pretty simple.  Just add "display:inline" to the CSS attribute.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.positioniseverything.net/explorer/doubled-margin.html"&gt;http://www.positioniseverything.net/explorer/doubled-margin.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Matt Crigger&lt;br /&gt;&lt;a href="http://www.phirebranding.com"&gt;http://www.phirebranding.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-2667011457351075084?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/2667011457351075084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=2667011457351075084' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2667011457351075084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2667011457351075084'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/11/ie6-margin-fix.html' title='IE6 margin fix'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-6770513502934536448</id><published>2008-11-20T16:33:00.004-05:00</published><updated>2008-11-20T16:38:13.749-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='MSSQL'/><title type='text'>Escape Character in MSSQL</title><content type='html'>I had a frustrating time trying to escape single quotes in MSSQL.  I had enclosed my content in single quotes so that double quotes would be okay, but then I had to deal with if a user put a single quote in the field.  In standard MySQL you could just use the backslash (\) but MSSQL requires a single quote (') in order to escape a character!&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here is a little function I made in PHP to look for single quotes and doubling them so that they would be escaped (thus allowing the content to be inserted into MSSQL).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//********************************&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;fix quotes for mssql&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//********************************&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;function mssql_quote_fix($text)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$text = str_replace("'", "''", $text);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;return $text;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Just call this function on the text you're trying to insert.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I'll give a little credit to this article for helping me: &lt;a target="_blank" href="http://tipsandtricks.nogoodatcoding.com/2007/07/escape-character-in-microsoft-sql.html"&gt;Escape Character In Microsoft SQL Server 2000&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-6770513502934536448?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/6770513502934536448/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=6770513502934536448' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6770513502934536448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6770513502934536448'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/11/escape-character-in-mssql.html' title='Escape Character in MSSQL'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-7878562530541581227</id><published>2008-11-19T16:00:00.006-05:00</published><updated>2008-11-19T16:16:04.083-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='cURL'/><title type='text'>cURL Alternative to PHP Include (with SESSIONs)</title><content type='html'>This is followup to my previous post about cURL Alernative to PHP Include.  Basically, the method I posted before didn't copy over the current $_SESSION in PHP to the page that you were calling.  This mean, that page didn't know the session (i.e. if someone was logged in).&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The following code over comes this problem and passes along PHP's $_SESSION information to the called page.  This has been tested for pages on the same server, I'm not sure how it will work if calling a page from another server.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&amp;lt;!-- save $_SESSION to use in call --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;session_start();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$strCookie = 'PHPSESSID=' . $_COOKIE['PHPSESSID'] . '; path=/';&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;session_write_close();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&amp;lt;!-- Begin cURL call--&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$curl_handle = curl_init('enter_external_url_here');&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;curl_setopt( $curl_handle, CURLOPT_COOKIE, $strCookie );&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;curl_exec($curl_handle);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;curl_close($curl_handle);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-7878562530541581227?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/7878562530541581227/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=7878562530541581227' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/7878562530541581227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/7878562530541581227'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/11/curl-alternative-to-php-include-with.html' title='cURL Alternative to PHP Include (with SESSIONs)'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-8686046268588269421</id><published>2008-11-18T14:58:00.002-05:00</published><updated>2008-11-18T15:02:04.706-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='cURL'/><title type='text'>cURL Alternative to PHP Include</title><content type='html'>cURL is usually installed with PHP on a server.  I ran into a problem where I needed to be able to include external URLs into a website.  The server I was using didn't allow for urls in the include field (allow_url_include was off).  So, I used this bit of code to do the same thing:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;$curl_handle=curl_init();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;curl_setopt($curl_handle,CURLOPT_URL,'enter_external_url_here');&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;curl_exec($curl_handle);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;curl_close($curl_handle);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Make sure to replace enter_external_url_here with the actual URL.  Quotes are required around the URL.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-8686046268588269421?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/8686046268588269421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=8686046268588269421' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8686046268588269421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8686046268588269421'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/11/curl-alternative-to-php-include.html' title='cURL Alternative to PHP Include'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-8492939451924360291</id><published>2008-11-14T13:41:00.003-05:00</published><updated>2008-11-14T13:44:49.552-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Simple Javascript Object Check</title><content type='html'>Alright this is something fairly simple but it is useful when you want to have javascript check if an object exists before trying to manipulate it.  As we should know, javascript will die if you try to do an action on an object that doesn't exist.  This is part of the simplicity and low-weight of javascript that makes it great for the web.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So before you try to do anything to an object that might not exist on a particular page, put in the following line of code:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;if (document.getElementById('the_id_of_the_object') != undefined)&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;     //code goes here&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Again, something super simple but may save you some problems in you're building a larger site with pages that might not have the same objects but share the same scripts.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-8492939451924360291?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/8492939451924360291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=8492939451924360291' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8492939451924360291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8492939451924360291'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/11/simply-javascript-object-check.html' title='Simple Javascript Object Check'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-6599568915703140948</id><published>2008-11-13T11:05:00.003-05:00</published><updated>2008-11-13T11:09:06.395-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>When Tables are Okay</title><content type='html'>The trend in web development/design is to work with CSS to create layouts.  In the past we used tables to structure websites, this was mainly because of their easy, the lack of development of CSS, and the lack of CSS standard compliance in web browsers.  There are times when tables are applicable even though there is a certain stigma to using them nowadays.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I found the following article very useful in helping to figure out when tables are a good choice and &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;should &lt;/span&gt;be used.  If you're interested, take a read: &lt;a href="http://webdesign.about.com/od/tables/a/aa122605.htm" target="_blank"&gt;Tables for Tabular Data - What is Tabular Data?&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-6599568915703140948?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/6599568915703140948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=6599568915703140948' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6599568915703140948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6599568915703140948'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/11/when-tables-are-okay.html' title='When Tables are Okay'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-2359507968779066508</id><published>2008-11-11T10:13:00.005-05:00</published><updated>2008-11-11T10:21:01.569-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>EM Conversions for Base Font of 12px</title><content type='html'>In order to make things really easy, I made this little table to help with conversions from pixels to EMs.  I'm used to using pixels and I'm sure most everyone is, so here is something simple.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The following table applies to a browser that is set to 'medium' font-size (the standard).  Since most websites use a standard 12px font for text, I set the body font to this value so that the EMs are pegged at 12px (i.e. 1em = 12px).&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;Base (from browser): 16px;&lt;/div&gt;&lt;div&gt;Body (CSS): 75% (12px);&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Befor getting to the conversions, take a look at the above values.  You'll need to set your BODY tag to font-size: 75%.  75% of 16px is 12px, &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;this is what we want to work with or else the table below will not work&lt;/span&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Conversions&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style=" ;font-family:'courier new';font-size:1em;"&gt;Column 1: Desired in px | Column 2: Outcome in em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; 0px =  .000 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; 1px =  .083 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; 2px =  .166 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; 3px =  .250 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; 4px =  .333 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; 5px =  .416 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; 6px =  .500 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; 7px =  .583 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; 8px =  .666 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; 9px =  .750 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;10px =  .833 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;11px =  .916 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;12px = 1.000 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;13px = 1.083 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;14px = 1.166 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;15px = 1.250 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;16px = 1.333 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;17px = 1.416 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;18px = 1.500 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;19px = 1.583 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;20px = 1.666 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;21px = 1.750 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;22px = 1.833 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;23px = 1.916 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;24px = 2.000 em&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Again, the formula is:&lt;/span&gt; desired-font/parent-font = font-in-em (i.e. 10/12 = .833em)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Hope this helps!&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-2359507968779066508?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/2359507968779066508/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=2359507968779066508' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2359507968779066508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2359507968779066508'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/11/em-conversions-for-base-font-of-12px.html' title='EM Conversions for Base Font of 12px'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-1935791875178885596</id><published>2008-11-11T09:42:00.002-05:00</published><updated>2008-11-11T09:50:48.964-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Sizing Text with EMs</title><content type='html'>&lt;div&gt;EMs can be tricky to deal with.  To sum them up, however, they basically allow for resizing of text in Internet Explorer.  If you set the text to a pixel value, IE doesn't allow for resizing of that text.  It seems obvious why (to preserve your intended designs) but other browsers don't have this rule.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here are some basic rules:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;The default font-size at 'medium' on regular browsers is 16px&lt;br /&gt;&lt;/li&gt;&lt;li&gt;EMs are dependant on their parent element's size&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;With that said, here is an example of working with EMs:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Default browser size: 16px&lt;/li&gt;&lt;li&gt;Intended font-size: 12px&lt;/li&gt;&lt;li&gt;Value in EMs: 12/16 = .75em&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;Remember when calculating EMs that the EM inherits its denominator (in the equation) from the parent font size.  The calculation is also based on pixel values.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For further reading on EMs check out the following sites:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://jontangerine.com/silo/css/pixels-to-ems/" target="_blank"&gt;Pixels to Ems Conversion Table for CSS&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.clagnut.com/blog/348/" target="_blank"&gt;How to size text using ems&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-1935791875178885596?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/1935791875178885596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=1935791875178885596' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1935791875178885596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1935791875178885596'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/11/sizing-text-with-ems.html' title='Sizing Text with EMs'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-2794539607942108219</id><published>2008-11-06T09:56:00.002-05:00</published><updated>2008-11-11T09:51:43.688-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='Cheat Sheet'/><title type='text'>CSS Cheat Sheet</title><content type='html'>Another great cheat sheet to help when you can't remember syntax.  This one is for CSS!  The guys at addedbytes make these and they're really useful!  Great stuff.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.addedbytes.com/cheat-sheets/css-cheat-sheet/" target="_blank"&gt;CSS Cheat Sheet (V2)&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-2794539607942108219?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/2794539607942108219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=2794539607942108219' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2794539607942108219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2794539607942108219'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/11/css-cheat-sheet.html' title='CSS Cheat Sheet'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-6685828875992638388</id><published>2008-11-06T09:47:00.005-05:00</published><updated>2008-11-11T09:52:28.900-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SEO'/><category scheme='http://www.blogger.com/atom/ns#' term='HTACCESS'/><category scheme='http://www.blogger.com/atom/ns#' term='Cheat Sheet'/><title type='text'>Mod_rewrite cheat sheet</title><content type='html'>&lt;p&gt;A great cheat sheet for mod_rewrite syntax.&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.addedbytes.com/apache/mod_rewrite-cheat-sheet/" target="_blank"&gt;MOD_REWRITE Cheat Sheet (V2)&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-6685828875992638388?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/6685828875992638388/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=6685828875992638388' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6685828875992638388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6685828875992638388'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/11/modrewrite-cheat-sheet.html' title='Mod_rewrite cheat sheet'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-7752098736716421373</id><published>2008-11-06T09:40:00.004-05:00</published><updated>2008-11-06T09:44:02.158-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Simple form confirmation</title><content type='html'>If you want a simple form confirmation, here you go:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;form onsubmit="return confirm('Are you sure you want to send this?');"&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Just make sure the onsubmit is in your form tag and it will have a popup dialog confirming the submission of the form.  Very simple.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-7752098736716421373?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/7752098736716421373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=7752098736716421373' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/7752098736716421373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/7752098736716421373'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/11/simple-form-confirmation.html' title='Simple form confirmation'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-485668956034578263</id><published>2008-10-31T14:28:00.004-04:00</published><updated>2008-10-31T14:31:21.585-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='MSSQL'/><title type='text'>SQL Random Rows</title><content type='html'>&lt;h4&gt;Select a random row with MySQL:&lt;/h4&gt;&lt;p&gt;SELECT column FROM table  ORDER BY &lt;strong&gt;RAND()&lt;/strong&gt;  LIMIT 1  &lt;/p&gt;&lt;h4&gt;Select a random row with PostgreSQL:&lt;/h4&gt;&lt;p&gt;SELECT column FROM table  ORDER BY &lt;strong&gt;RANDOM()&lt;/strong&gt;  LIMIT 1  &lt;/p&gt;&lt;h4&gt;Select a random row with Microsoft SQL Server:&lt;/h4&gt;&lt;p&gt;SELECT TOP 1 column FROM table  ORDER BY &lt;strong&gt;NEWID()&lt;/strong&gt;  &lt;/p&gt;&lt;p&gt;Thanks to: &lt;a href="http://www.petefreitag.com/item/466.cfm" target="_blank"&gt;http://www.petefreitag.com/item/466.cfm&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-485668956034578263?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/485668956034578263/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=485668956034578263' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/485668956034578263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/485668956034578263'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/10/sql-random-rows.html' title='SQL Random Rows'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-4103916305812469936</id><published>2008-10-27T14:14:00.002-04:00</published><updated>2008-10-27T14:18:08.243-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL'/><title type='text'>MySQL DATETIME and PHP</title><content type='html'>If you ever had trouble with the date conversions between MySQL's DATETIME field and PHP's date function, here is a way to deal with them.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you want to take the date from MySQL and display it a certain way with the DATE function in PHP you first need to convert it.  Use the following code:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;date(formatstring, strtotime($rowentry));&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;formatstring is your format string for your date (see &lt;a href="http://www.php.net/date" target="_blank"&gt;date reference&lt;/a&gt;)&lt;/div&gt;&lt;div&gt;strtotime is a function in PHP that takes a string&lt;/div&gt;&lt;div&gt;$rowentry is the DATETIME data from your MySQL database&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-4103916305812469936?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/4103916305812469936/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=4103916305812469936' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4103916305812469936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4103916305812469936'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/10/mysql-datetime-and-php.html' title='MySQL DATETIME and PHP'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-1791697586060776368</id><published>2008-10-13T17:02:00.003-04:00</published><updated>2008-11-06T09:49:35.907-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SEO'/><category scheme='http://www.blogger.com/atom/ns#' term='HTACCESS'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache'/><title type='text'>SEO: mod_rewrite and dynamic pages</title><content type='html'>Search engines don't really like urls that look like http://mysite.com/page.php?id=1&amp;amp;type=23.  Parameters in the URL throw off some search engines and others refuse to index such pages.  To get around this, and still keep your dynamic information, you can do with the mod_rewrite approach with Apache.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This solution is only for the Apache web server.  If you're using another server, such as Windows, you'll need to figure something else out.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The following link details how to use mod_rewrite to have urls that look like http://mysite.com/pages/mypage/mysubpage function like the url at the top.  &lt;a href="http://www.workingwith.me.uk/articles/scripting/mod_rewrite" target="_blank"&gt;http://www.workingwith.me.uk/articles/scripting/mod_rewrite&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-1791697586060776368?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/1791697586060776368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=1791697586060776368' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1791697586060776368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1791697586060776368'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/10/seo-modrewrite-and-dynamic-pages.html' title='SEO: mod_rewrite and dynamic pages'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-1547836243827067446</id><published>2008-10-09T11:34:00.005-04:00</published><updated>2008-10-09T11:40:14.583-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='MSSQL'/><title type='text'>SQL JOIN References</title><content type='html'>&lt;p&gt;I had a previous post about LEFT JOINS but I believe w3schools does a better job at explaining them.&lt;/p&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.w3schools.com/sql/sql_join.asp"&gt;General Join Info&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.w3schools.com/sql/sql_join_inner.asp"&gt;Inner Join&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.w3schools.com/sql/sql_join_left.asp"&gt;Left Join&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.w3schools.com/sql/sql_join_right.asp"&gt;Right Join&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.w3schools.com/sql/sql_join_full.asp"&gt;Full Join&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.w3schools.com/sql/sql_union.asp"&gt;Union&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a target="_blank" href="http://www.w3schools.com/sql/sql_select_into.asp"&gt;Select Into&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-1547836243827067446?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/1547836243827067446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=1547836243827067446' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1547836243827067446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1547836243827067446'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/10/sql-join-references.html' title='SQL JOIN References'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-6381051092280211684</id><published>2008-10-08T15:50:00.006-04:00</published><updated>2008-10-08T15:57:49.824-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><title type='text'>Background:none doesn't work (in IE)</title><content type='html'>Something as simple as "background: none;" when placing a "like" item within another doesn't work in IE7 OR IE6.&lt;br /&gt;&lt;br /&gt;&amp;lt;ul id=&amp;quot;mainNav&amp;quot; style=&amp;quot;&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;li style=&amp;quot;&amp;quot; class=&amp;quot;group1&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;#&amp;quot; onmousedown=&amp;quot;showhide('mainSubGroup1')&amp;quot;&amp;gt;Energy &amp;amp;amp; Resource Management&amp;lt;/a&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;ul id=&amp;quot;mainSubGroup1&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;li id=&amp;quot;s-t01&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;#&amp;quot; style=&amp;quot;&amp;quot;&amp;gt;Environmental Stewardship&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;li id=&amp;quot;s-t02&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;/energy/index.php&amp;quot; style=&amp;quot;&amp;quot;&amp;gt;Climate Savers Computing Initiative&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;li id=&amp;quot;s-t03&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;#&amp;quot; style=&amp;quot;&amp;quot;&amp;gt;Parking and Transportation Services&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;li id=&amp;quot;s-t04&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;#&amp;quot; style=&amp;quot;&amp;quot;&amp;gt;Utilities and Plant Engineering&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/li&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;IF there is a background of some sort on the first  &amp;lt;li&amp;gt; item, the items in the next level will use them as well.  Adding "background:none;" does not work.  Must replace with something.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-6381051092280211684?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/6381051092280211684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=6381051092280211684' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6381051092280211684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6381051092280211684'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/10/backgroundnone-doesnt-work-in-ie.html' title='Background:none doesn&apos;t work (in IE)'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-5344970415969831189</id><published>2008-10-07T12:03:00.003-04:00</published><updated>2008-10-07T12:04:37.402-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='Firefox'/><title type='text'>Default Firefox Style Sheet</title><content type='html'>I was trying to find the default CSS used in Firefox and finally found out how to do it.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Simply paste the following into your browser window: &lt;a href="file:///C:/Program%20Files/Mozilla%20Firefox/res/html.css" target="_blank"&gt;file:///C:/Program%20Files/Mozilla%20Firefox/res/html.css&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-5344970415969831189?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/5344970415969831189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=5344970415969831189' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/5344970415969831189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/5344970415969831189'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/10/default-firefox-style-sheet.html' title='Default Firefox Style Sheet'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-1787075628952866420</id><published>2008-09-29T10:52:00.003-04:00</published><updated>2008-09-29T10:55:39.144-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL'/><title type='text'>MySQL Count Distinct</title><content type='html'>I was having trouble trying to count up the number of enries in a database.  I was doing a join and wanted only the unique entries from another table so that I wouldn't get a inflated count.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can do a COUNT with the DISTINCT tag in it to accomplish this.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;Example:&lt;br /&gt;SELECT COUNT(DISTINCT results) FROM student;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here is a reference: &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html#function_count-distinct" target="_blank"&gt;http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html#function_count-distinct&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-1787075628952866420?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/1787075628952866420/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=1787075628952866420' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1787075628952866420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1787075628952866420'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/09/mysql-count-distinct.html' title='MySQL Count Distinct'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-1870892352405303014</id><published>2008-09-25T11:51:00.007-04:00</published><updated>2008-09-25T11:55:46.011-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ascii'/><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><title type='text'>Flash ASCII Code</title><content type='html'>If you need ASCII characters (+, &gt; , %, etc) this link will give you all the values to put into the text file (txt, php, whatever) for translation to Flash textareas.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14143&amp;amp;sliceId=1"&gt;http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14143&amp;amp;sliceId=1&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-1870892352405303014?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/1870892352405303014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=1870892352405303014' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1870892352405303014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1870892352405303014'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/09/flash-aascii-code.html' title='Flash ASCII Code'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-5954603559387381865</id><published>2008-09-12T11:41:00.001-04:00</published><updated>2008-09-12T11:43:13.279-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IIS7'/><title type='text'>IIS7 Custom Error Pages &amp; Debug Information</title><content type='html'>Ever wanted to create custom error pages or change the default debug information that is displayed with IIS?&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a target="_blank" href="http://blogs.iis.net/bills/archive/2006/10/19/Improving-Custom-Errors-for-IIS7-Server.aspx"&gt;http://blogs.iis.net/bills/archive/2006/10/19/Improving-Custom-Errors-for-IIS7-Server.aspx&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-5954603559387381865?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/5954603559387381865/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=5954603559387381865' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/5954603559387381865'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/5954603559387381865'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/09/iis7-custom-error-pages-debug.html' title='IIS7 Custom Error Pages &amp; Debug Information'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-1226696822200776413</id><published>2008-09-04T14:40:00.002-04:00</published><updated>2008-11-06T09:58:53.315-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Cheat Sheet'/><title type='text'>PHP Cheat Sheet</title><content type='html'>This is an interesting little cheat sheet for PHP.  It doesn't cover a whole lot of functions, but it does have some that are used often.  Might save you  a lot of time.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.addedbytes.com/cheat-sheets/php-cheat-sheet/" target="_blank"&gt;http://www.addedbytes.com/cheat-sheets/php-cheat-sheet/&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-1226696822200776413?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/1226696822200776413/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=1226696822200776413' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1226696822200776413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1226696822200776413'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/09/php-cheat-sheet.html' title='PHP Cheat Sheet'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-3494028767623572621</id><published>2008-09-04T12:01:00.005-04:00</published><updated>2008-10-13T17:06:41.186-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SEO'/><title type='text'>SEO: Stopping Search Engine Indexing</title><content type='html'>If you wanted to stop Google from indexing your website (or any other search engine) you can include a robots.txt file on your server.  This file is checked by search engine bots before indexing and they follow whatever rules you put in there.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can find detailed information on how to write your robots.txt here: &lt;a href="http://www.google.com/support/webmasters/bin/answer.py?answer=40360" target="_blank"&gt;http://www.google.com/support/webmasters/bin/answer.py?answer=40360&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-3494028767623572621?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/3494028767623572621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=3494028767623572621' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3494028767623572621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3494028767623572621'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/09/stopping-search-engine-indexing.html' title='SEO: Stopping Search Engine Indexing'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-341499504703764719</id><published>2008-09-03T16:39:00.006-04:00</published><updated>2008-09-03T16:48:52.201-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Forms'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><title type='text'>Search button and field alignmnet</title><content type='html'>&lt;span style="font-family:courier new;"&gt;CSS DOCUMENT&lt;br /&gt;&lt;br /&gt;#email {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    margin: 0px 2px;    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    width: 110px;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    _width: 110px;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    padding: 2px 2px 0 2px;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    _padding-right: 18px;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    height: 16px;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    _height: 16px;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    background-color: #FFF;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    border: 1px solid #afa9a6;    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    -moz-box-sizing: content-box;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    float:left;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    font-size:10px;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;.search { background-image:url(/images/layout/speedclub_signup.gif); }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;button.icon-replace {    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;-moz-outline: none;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;padding: 0;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;border-style: none;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;background-color: transparent;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;background-repeat: no-repeat;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;background-position: center center;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;margin:0;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;.icon-replace {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;background-repeat: no-repeat;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;background-position: center center;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;display: inline; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;display: inline-block; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;display: -moz-inline-box; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;_display: inline; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;zoom: 100%; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;width: 44px; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;padding: 0 !important; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;overflow: hidden; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;white-space: nowrap; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;text-align: left; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;word-spacing: -2ex; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;letter-spacing: -2ex; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;min-height: 20px; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;_height: 20px; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;color: transparent !important; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;_font: 1px/0 monospace; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;_word-spacing: -2px;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;_letter-spacing: -2px;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;WITHIN HTML&lt;br /&gt;&amp;lt;input name=&amp;quot;email&amp;quot; id=&amp;quot;email&amp;quot; class=&amp;quot;speedclub_input&amp;quot; type=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;button type=&amp;quot;submit&amp;quot; id=&amp;quot;search-submit&amp;quot; class=&amp;quot;icon-replace  search&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;display:  none;&amp;quot;&amp;gt;Search&amp;lt;/span&amp;gt;&amp;lt;/button&amp;gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-341499504703764719?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/341499504703764719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=341499504703764719' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/341499504703764719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/341499504703764719'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/09/search-button-and-field-alignmnet.html' title='Search button and field alignmnet'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-7627598189712058450</id><published>2008-09-03T13:03:00.002-04:00</published><updated>2008-09-03T13:07:29.470-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MSSQL'/><title type='text'>MSSQL Count Query</title><content type='html'>&lt;p&gt;The count query is very useful in SQL.  Below is the syntax:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;SELECT COUNT(thefield) AS outputvariable FROM tablename GROUP BY thefield HAVING anyfield = yourvalue&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;thefield is what you want to count&lt;br /&gt;&lt;/li&gt;&lt;li&gt;outputvariable is what you want the count to be saved in&lt;br /&gt;&lt;/li&gt;&lt;li&gt;tablename is the name of the table to look into&lt;br /&gt;&lt;/li&gt;&lt;li&gt;anyfield is any field you want to use as a criteria&lt;br /&gt;&lt;/li&gt;&lt;li&gt;yourvalue is the value for your criteria&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;This may also work the same for MYSQL.&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-7627598189712058450?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/7627598189712058450/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=7627598189712058450' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/7627598189712058450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/7627598189712058450'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/09/mssql-count-query.html' title='MSSQL Count Query'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-1848389946161486587</id><published>2008-08-29T17:01:00.005-04:00</published><updated>2008-08-29T17:05:27.973-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MSSQL'/><title type='text'>MSSQL Data Types</title><content type='html'>Sometimes it gets confusing trying to figure out what all the SQL Server data types really are for.  It seems, to a novice, that they have too many... but in reality they all serve a purpose.&lt;br /&gt;&lt;br /&gt;Below is a table that gives a brief description of each of these data types.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;table border="1" cellspacing="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th bg="" style="color: rgb(0, 0, 0);" width="100"&gt; &lt;b&gt;&lt;span style="color: rgb(0, 0, 0);font-family:Arial;font-size:85%;"  &gt;Data Types&lt;/span&gt;&lt;/b&gt; &lt;/th&gt; &lt;th bg="" style="color: rgb(0, 0, 0);" width="400"&gt; &lt;b&gt;&lt;span style="color: rgb(0, 0, 0);font-family:Arial;font-size:85%;"  &gt;Description&lt;/span&gt;&lt;/b&gt; &lt;/th&gt;  &lt;/tr&gt;&lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;bigint&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Integer data from -2^63 through 2^63-1&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;int&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Integer data from -2^31 through 2^31 - 1&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;smallint&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Integer data from -2^15 through 2^15 - 1&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;tinyint&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Integer data from 0 through 255&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;bit&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Integer data with either a 1 or 0 value&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;decimal&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Fixed precision and scale numeric data from -10^38 +1 through 10^38 -1&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;numeric&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Fixed precision and scale numeric data from -10^38 +1 through 10^38 -1&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;money&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Monetary data values from -2^63 through 2^63 - 1&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;smallmoney&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Monetary data values from -214,748.3648 through +214,748.3647&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;float&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Floating precision number data from -1.79E + 308 through 1.79E + 308&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;real&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Floating precision number data from -3.40E + 38 through 3.40E + 38&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;datetime&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Date and time data from January 1, 1753, through December 31, 9999,&lt;br /&gt;with an accuracy of 3.33 milliseconds&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;smalldatetime&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Date and time data from January 1, 1900, through June 6, 2079,&lt;br /&gt;with an accuracy of one minute&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;char&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Fixed-length  character data with a maximum length of 8,000 characters&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;varchar&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Variable-length  data with a maximum of 8,000 characters&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;text&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Variable-length  data with a maximum length of 2^31 - 1 characters&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;nchar&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Fixed-length Unicode data with a maximum length of 4,000 characters&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;nvarchar&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Variable-length Unicode data with a maximum length of 4,000 characters&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;ntext&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Variable-length Unicode data with a maximum length of 2^30 - 1 characters&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;binary&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Fixed-length binary data with a maximum length of 8,000 bytes&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;varbinary&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Variable-length binary data with a maximum length of 8,000 bytes&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;image&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Variable-length binary data with a maximum length of 2^31 - 1 bytes&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;cursor&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;A reference to a cursor&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;sql_variant&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;A data type that stores values of various data types,&lt;br /&gt;except text, ntext, timestamp, and sql_variant&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;table&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;A special data type used to store a result set for later processing&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;timestamp&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;A database-wide unique number that gets updated every time&lt;br /&gt;a row gets updated&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;uniqueidentifier&lt;/span&gt;&lt;/b&gt; &lt;/td&gt; &lt;td bg="" style="color: rgb(0, 0, 0);"&gt; &lt;b&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;A globally unique identifier&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;The table was taken from: &lt;a href="http://www.databasejournal.com/features/mssql/article.php/2212141" target="_blank"&gt;http://www.databasejournal.com/features/mssql/article.php/2212141&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-1848389946161486587?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/1848389946161486587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=1848389946161486587' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1848389946161486587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1848389946161486587'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/08/mssql-data-types.html' title='MSSQL Data Types'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-1513109163766399308</id><published>2008-08-29T16:29:00.002-04:00</published><updated>2008-08-29T16:32:01.136-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP'/><title type='text'>ASP Directory Listing</title><content type='html'>Ever wanted to list the contents of a directory?  I found this very useful when developing a site for one of our clients.  You can use it to allow them to select files to use or really anything...&lt;br /&gt;&lt;br /&gt;Here was my reference for this: &lt;a target="_blank" href="http://www.brainjar.com/asp/dirlist/"&gt;http://www.brainjar.com/asp/dirlist/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I modified what they had to exclude files so that the user would only get the files I wanted them to see.  Putting this information in a dropdown list can be very useful, but you could also list it out if you wanted.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-1513109163766399308?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/1513109163766399308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=1513109163766399308' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1513109163766399308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1513109163766399308'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/08/asp-directory-listing.html' title='ASP Directory Listing'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-4426741725502367482</id><published>2008-08-29T16:26:00.003-04:00</published><updated>2008-08-29T16:28:51.283-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP'/><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='MSSQL'/><title type='text'>ASP RecordSet Reference</title><content type='html'>When dealing with SQL queries its important that you understand RecordSets in ASP.  It's pretty straight forward but since there are a lot of methods association with this object, its good to have a reference.&lt;br /&gt;&lt;br /&gt;Here's a reference for you all: &lt;a href="http://www.itechies.net/tutorials/asp/index.phpindex-pid-rec.htm" target="_blank"&gt;http://www.itechies.net/tutorials/asp/index.phpindex-pid-rec.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-4426741725502367482?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/4426741725502367482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=4426741725502367482' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4426741725502367482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4426741725502367482'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/08/asp-recordset-reference.html' title='ASP RecordSet Reference'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-5272773098654812277</id><published>2008-08-29T16:21:00.001-04:00</published><updated>2008-08-29T16:24:37.001-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP'/><category scheme='http://www.blogger.com/atom/ns#' term='MSSQL'/><title type='text'>Date &amp; Time Formats in ASP and MSSQL</title><content type='html'>ASP is terrible when it comes to formatting of dates.  When putting your date into MSSQL (SQL Server), you probably will encounter issues with the date not being when you entered.  A major note is to make sure you include single quotes around your date when making your SQL query.  If you don't, you probably won't get the date you intended.&lt;br /&gt;&lt;br /&gt;Here is a reference for formats supported in MSSQL for the datetime field.  The article also gives an explanation of the difference between DATETIME and SMALLDATETIME.&lt;br /&gt;&lt;br /&gt;&lt;a target="_blank" href="http://www.databasejournal.com/features/mssql/article.php/2191631"&gt;http://www.databasejournal.com/features/mssql/article.php/2191631&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-5272773098654812277?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/5272773098654812277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=5272773098654812277' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/5272773098654812277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/5272773098654812277'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/08/date-time-formats-in-asp-and-mssql.html' title='Date &amp; Time Formats in ASP and MSSQL'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-2465231935592370698</id><published>2008-08-29T10:33:00.003-04:00</published><updated>2008-08-29T10:36:11.278-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP'/><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='MSSQL'/><title type='text'>Displaying Large Text with PHP/ASP from SQL</title><content type='html'>This is an issue I faced with both PHP and ASP. When I set a field type in SQL to varchar(max) or some large amount, when I attempt to display this information via the server-side language, nothing displays.&lt;br /&gt;&lt;br /&gt;I found online an explanation for ASP:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;After some testing I found there are no SQL Server 2005 data types&lt;br /&gt;that can be read by an ASP page that hold more than 8000 characters. I&lt;br /&gt;speculate that the 2-byte field length indicator is not read by ASP.&lt;br /&gt;Maybe the field length of the old Access memo data type was encoded&lt;br /&gt;differently. - kirkatsfw-ga&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;I also found something similar related to PHP.  My solution in both cases was as stated above, to reduce the limit for the field to something that the server-side languages could deal with.  This was the case with both PHP and ASP along with both MySQL and MSSQL.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-2465231935592370698?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/2465231935592370698/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=2465231935592370698' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2465231935592370698'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2465231935592370698'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/08/displaying-large-text-with-phpasp-from.html' title='Displaying Large Text with PHP/ASP from SQL'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-2588695727761381658</id><published>2008-08-28T16:43:00.001-04:00</published><updated>2008-08-28T16:44:49.505-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP'/><title type='text'>ASP Functions List</title><content type='html'>&lt;p&gt;I found a nice list of functions in ASP.&lt;/p&gt;&lt;p&gt;Here it is: &lt;a target="_blank" href="http://www.haneng.com/FunctionSearch.asp?s=a"&gt;http://www.haneng.com/FunctionSearch.asp?s=a&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-2588695727761381658?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/2588695727761381658/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=2588695727761381658' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2588695727761381658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/2588695727761381658'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/08/asp-functions-list.html' title='ASP Functions List'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-8653813501531988295</id><published>2008-08-27T16:46:00.006-04:00</published><updated>2008-08-27T16:59:49.850-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP'/><category scheme='http://www.blogger.com/atom/ns#' term='MSSQL'/><title type='text'>ASP &amp; MSSQL Query Examples</title><content type='html'>Here are some code examples for doing things in ASP with MSSQL (SQL Express):&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Setup the Connection&lt;/span&gt;&lt;br /&gt;&lt;blockquote  style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;'Setup the connection&lt;br /&gt;Dim aConnectionString&lt;br /&gt;&lt;br /&gt;aConnectionString = "Driver={SQL Native Client};Server=sitename\sqlexpress;Database=databasename;Uid=username;Pwd=password;"&lt;br /&gt;&lt;br /&gt;'Connect to DB&lt;br /&gt;Dim conn, R, SQL, RecsAffected&lt;br /&gt;&lt;br /&gt;Set conn = Server.CreateObject("ADODB.Connection")&lt;br /&gt;conn.Mode = adModeReadWrite&lt;br /&gt;conn.ConnectionString = aConnectionString&lt;br /&gt;conn.Open&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;Setup RecordSet &amp;amp; List all Entries&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;'select a record set&lt;br /&gt;set rs = Server.CreateObject("ADODB.Recordset")&lt;br /&gt;rs.Open "Select * from table", conn&lt;br /&gt;&lt;br /&gt;do until rs.EOF&lt;br /&gt;for each x in rs.Fields&lt;br /&gt;    response.write(x.name)&lt;br /&gt;    response.write(" = ")&lt;br /&gt;    response.write(x.value)&lt;br /&gt;next&lt;br /&gt;rs.MoveNext&lt;br /&gt;loop&lt;br /&gt;&lt;br /&gt;rs.close&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;Select an Entry &amp;amp; See if it Exists&lt;br /&gt;&lt;br /&gt;&lt;blockquote  style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;set rs = Server.CreateObject("ADODB.Recordset")&lt;br /&gt;rs.Open "Select * FROM tablename WHERE fieldname = 'fieldvalue'", conn&lt;br /&gt;&lt;br /&gt;'check if login worked&lt;br /&gt;dim found&lt;br /&gt;&lt;br /&gt;if rs.BOF and rs.EOF then&lt;br /&gt;'no entry found&lt;br /&gt;found = false&lt;br /&gt;else&lt;br /&gt;'entry found&lt;br /&gt;found = true&lt;br /&gt;end if&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Add an Entry&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote  style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;'add an entry&lt;br /&gt;'conn.Execute "INSERT INTO tablename (fieldnames) VALUES (fieldvalues)"&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Delete an Entry&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote  style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;'delete an entry&lt;br /&gt;'conn.Execute "DELETE FROM tablename WHERE fieldname = 'fieldvalue'"&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Update an entry&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote  style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;'update an entry&lt;br /&gt;'conn.Execute "UPDATE tablename SET fieldname = 'somevalue' WHERE fieldname = 'fieldvalue'"&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;There's a lot more but these are some for reference purposes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-8653813501531988295?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/8653813501531988295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=8653813501531988295' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8653813501531988295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8653813501531988295'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/08/asp-mssql-query-examples.html' title='ASP &amp; MSSQL Query Examples'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-8573077817295627735</id><published>2008-08-27T14:51:00.002-04:00</published><updated>2008-08-28T09:33:06.745-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP'/><category scheme='http://www.blogger.com/atom/ns#' term='MSSQL'/><title type='text'>Resource for Connection Strings</title><content type='html'>Every get stuck trying to figure out how to connect to a database?  I had this trouble when trying to get into a MS SQLExpress database.  It just wouldn't connect... but I knew it was my problem.&lt;br /&gt;&lt;br /&gt;Here is a great site for connection strings: &lt;a target="_blank" href="http://www.connectionstrings.com/"&gt;http://www.connectionstrings.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-8573077817295627735?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/8573077817295627735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=8573077817295627735' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8573077817295627735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/8573077817295627735'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/08/resource-for-connection-strings.html' title='Resource for Connection Strings'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-3274453953558587853</id><published>2008-08-22T15:09:00.004-04:00</published><updated>2008-08-28T09:33:29.541-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dreamweaver'/><title type='text'>Removing Line Breaks with Dreamweaver</title><content type='html'>Well my last post took me forever to post.  It seems blogger is dumb even in HTML code and takes line breaks literally... ? Meaning every line break was treated like one, even in HTML mode, which doesn't make any sense.&lt;br /&gt;&lt;br /&gt;So I searched online and found  out how to remove them with Dreamweaver.  Its pretty cool.  This is the process:&lt;br /&gt;&lt;ol&gt;&lt;li&gt; Open a document, &lt;/li&gt;&lt;li&gt;Click inside Code View,&lt;/li&gt;&lt;li&gt; Create an empty line,&lt;/li&gt;&lt;li&gt;Left-click in the  margin on the left hand-side of that empty line (it should turn black on Windows,  blue on Mac),&lt;/li&gt;&lt;li&gt; Select Menu &gt; Edit &gt; Find and Replace (keyboard shortcut: Ctrl + F),&lt;/li&gt;&lt;li&gt; Select an option in the "Find in:" dropdown box,&lt;/li&gt;&lt;li&gt;Select "Replace All" and you're done.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;The source of this was here: &lt;a target="_blank" href="http://www.tjkdesign.com/articles/whitespace.asp"&gt;http://www.tjkdesign.com/articles/whitespace.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Really really helpful!  I'm sure I'll use it again.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-3274453953558587853?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/3274453953558587853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=3274453953558587853' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3274453953558587853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3274453953558587853'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/08/removing-line-breaks-from-dreamweaver.html' title='Removing Line Breaks with Dreamweaver'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-6842391073714456160</id><published>2008-08-22T14:38:00.021-04:00</published><updated>2008-08-28T09:33:54.568-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Event Handlers'/><title type='text'>Javascript Event Handlers</title><content type='html'>&lt;p&gt;I wanted a quick list of event handlers so here they are.  This is courtesy of our friends at the w3schools.&lt;/p&gt;&lt;p&gt;&lt;b&gt;FF&lt;/b&gt;: Firefox, &lt;b&gt;N&lt;/b&gt;: Netscape, &lt;b&gt;IE&lt;/b&gt;: Internet Explorer&lt;/p&gt;&lt;p&gt;&lt;table width="100%" border="1" cellpadding="0" cellspacing="0"&gt;&lt;thead&gt;&lt;tr&gt;&lt;td valign="top" width="20%" align="left"&gt;Attribute&lt;/td&gt;&lt;td valign="top" width="68%" align="left"&gt;The event occurs when...&lt;/td&gt;&lt;td valign="top" width="4%" align="left"&gt;FF&lt;/td&gt;&lt;td valign="top" width="4%" align="left"&gt;N&lt;/td&gt;&lt;td valign="top" width="4%" align="left"&gt;IE&lt;/td&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td valign="top"&gt;onabort&lt;/td&gt;&lt;td valign="top"&gt;Loading of an image is interrupted&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;3&lt;/td&gt;&lt;td valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;onblur&lt;/td&gt;&lt;td valign="top"&gt;An element loses focus&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;2&lt;/td&gt;&lt;td valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;onchange&lt;/td&gt;&lt;td valign="top"&gt;The user changes the content of a field&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;2&lt;/td&gt;&lt;td valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;onclick&lt;/td&gt;&lt;td valign="top"&gt;Mouse clicks an object&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;2&lt;/td&gt;&lt;td valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;ondblclick&lt;/td&gt;&lt;td valign="top"&gt;Mouse double-clicks an object&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;4&lt;/td&gt;&lt;td valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;onerror&lt;/td&gt;&lt;td valign="top"&gt;An error occurs when loading a document or an image&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;3&lt;/td&gt;&lt;td valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;onfocus&lt;/td&gt;&lt;td valign="top"&gt;An element gets focus&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;2&lt;/td&gt;&lt;td valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;onkeydown&lt;/td&gt;&lt;td valign="top"&gt;A keyboard key is pressed&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;4&lt;/td&gt;&lt;td valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;onkeypress&lt;/td&gt;&lt;td valign="top"&gt;A keyboard key is pressed or held down&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;4&lt;/td&gt;&lt;td valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;onkeyup&lt;/td&gt;&lt;td valign="top"&gt;A keyboard key is released&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;4&lt;/td&gt;&lt;td valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;onload&lt;/td&gt;&lt;td valign="top"&gt;A page or an image is finished loading&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;2&lt;/td&gt;&lt;td valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;onmousedown&lt;/td&gt;&lt;td valign="top"&gt;A mouse button is pressed&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;4&lt;/td&gt;&lt;td valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;onmousemove&lt;/td&gt;&lt;td valign="top"&gt;The mouse is moved&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;6&lt;/td&gt;&lt;td valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;onmouseout&lt;/td&gt;&lt;td valign="top"&gt;The mouse is moved off an element&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;4&lt;/td&gt;&lt;td valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;onmouseover&lt;/td&gt;&lt;td valign="top"&gt;The mouse is moved over an element&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;2&lt;/td&gt;&lt;td valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;onmouseup&lt;/td&gt;&lt;td valign="top"&gt;A mouse button is released&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;4&lt;/td&gt;&lt;td valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;onreset&lt;/td&gt;&lt;td valign="top"&gt;The reset button is clicked&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;3&lt;/td&gt;&lt;td valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;onresize&lt;/td&gt;&lt;td valign="top"&gt;A window or frame is resized&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;4&lt;/td&gt;&lt;td valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;onselect&lt;/td&gt;&lt;td valign="top"&gt;Text is selected&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;2&lt;/td&gt;&lt;td valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;onsubmit&lt;/td&gt;&lt;td valign="top"&gt;The submit button is clicked&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;2&lt;/td&gt;&lt;td valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;onunload&lt;/td&gt;&lt;td valign="top"&gt;The user exits the page&lt;/td&gt;&lt;td valign="top"&gt;1&lt;/td&gt;&lt;td valign="top"&gt;2&lt;/td&gt;&lt;td valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt; &lt;p&gt;Listing can be found here: &lt;a target="_blank" href="http://www.w3schools.com/jsref/jsref_events.asp"&gt;http://www.w3schools.com/jsref/jsref_events.asp&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-6842391073714456160?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/6842391073714456160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=6842391073714456160' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6842391073714456160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6842391073714456160'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/08/javascript-event-handlers.html' title='Javascript Event Handlers'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-4102752601865442070</id><published>2008-08-22T10:38:00.003-04:00</published><updated>2008-08-28T09:34:23.384-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><title type='text'>CSS Lists</title><content type='html'>Formatting list items is always tricky with css.  There are so many combinations of what you can do and then there's browser differences with padding and margins.&lt;br /&gt;&lt;br /&gt;This is a good reference if you'd like to Tame CSS Lists: &lt;a target="_blank" href="http://www.alistapart.com/articles/taminglists/"&gt;http://www.alistapart.com/articles/taminglists/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Today you can do a lot with lists because you can make them look like whatever you want.  So they are an ideal choice for navigation menus, lists of information, or whatever creative ideas you might have.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-4102752601865442070?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/4102752601865442070/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=4102752601865442070' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4102752601865442070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4102752601865442070'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/08/css-lists.html' title='CSS Lists'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-3518966571532393547</id><published>2008-08-21T11:09:00.005-04:00</published><updated>2008-08-28T09:34:40.687-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL'/><title type='text'>MYSQL Left Join &amp; More</title><content type='html'>This may seem simple to others but I found a good reference for MYSQL query syntax.  Sometimes queries can get crazy and confusing, so its good to read up and make sure you're doing everything right.&lt;br /&gt;&lt;br /&gt;&lt;a target="_blank" href="http://www.tizag.com/mysqlTutorial/mysqlleftjoin.php"&gt;http://www.tizag.com/mysqlTutorial/mysqlleftjoin.php&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-3518966571532393547?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/3518966571532393547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=3518966571532393547' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3518966571532393547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3518966571532393547'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/08/mysql-left-join-more.html' title='MYSQL Left Join &amp; More'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-6561274069747859980</id><published>2008-08-20T13:14:00.003-04:00</published><updated>2008-08-28T09:34:59.254-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cookies'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP'/><title type='text'>Cookies with ASP</title><content type='html'>I found some references for cookies with ASP that I wanted to save.  These sites were good at helping me with the syntax because it is slightly different than what I'm used to in PHP.&lt;br /&gt;&lt;br /&gt;&lt;a target="_blank" href="http://www.w3schools.com/asp/asp_cookies.asp"&gt;http://www.w3schools.com/asp/asp_cookies.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a target="_blank" href="http://riki-lb1.vet.ohio-state.edu/mqlin/computec/tutorials/aspcookie.htm"&gt;http://riki-lb1.vet.ohio-state.edu/mqlin/computec/tutorials/aspcookie.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-6561274069747859980?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/6561274069747859980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=6561274069747859980' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6561274069747859980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/6561274069747859980'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/08/cookies-with-asp.html' title='Cookies with ASP'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-5146629217569317348</id><published>2008-08-14T15:18:00.006-04:00</published><updated>2008-08-14T15:25:28.039-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP'/><title type='text'>Download File Script for ASP</title><content type='html'>Well after tons of frustration with ASP (which sucks in my opinion), I was finally able to find a way to download files properly.  So, if you every wanted to make it so your links aren't straight to the files, but to an intermediate page first, here you go.  In PHP this is much simpler, FYI...&lt;br /&gt;&lt;br /&gt;&lt;blockquote style="font-family: Courier New,Courier,monospace; font-size: 12px;"&gt;&amp;lt;%&lt;br /&gt;Response.Buffer = True&lt;br /&gt;Dim strAbsFile&lt;br /&gt;Dim strFileExtension&lt;br /&gt;Dim objFSO&lt;br /&gt;Dim objFile&lt;br /&gt;Dim objStream&lt;br /&gt;'Set this to the variable in your GET&lt;br /&gt;Set filename = request.QueryString("wp")&lt;br /&gt;'-- set absolute file location&lt;br /&gt;strAbsFile = Server.MapPath(filename)&lt;br /&gt;'-- create FSO object to check if file exists and get properties&lt;br /&gt;Set objFSO = Server.CreateObject("Scripting.FileSystemObject")&lt;br /&gt;'-- check to see if the file exists&lt;br /&gt;If objFSO.FileExists(strAbsFile) Then&lt;br /&gt;Set objFile = objFSO.GetFile(strAbsFile)&lt;br /&gt;'-- first clear the response, and then set the appropriate headers&lt;br /&gt;Response.Clear&lt;br /&gt;'-- the filename you give it will be the one that is shown&lt;br /&gt;'   to the users by default when they save&lt;br /&gt;Response.AddHeader "Content-Disposition", "attachment; filename=" &amp;amp; objFile.Name&lt;br /&gt;Response.AddHeader "Content-Length", objFile.Size&lt;br /&gt;Response.ContentType = "application/octet-stream"&lt;br /&gt;&lt;br /&gt;Set objStream = Server.CreateObject("ADODB.Stream")&lt;br /&gt;objStream.Open&lt;br /&gt;'-- set as binary&lt;br /&gt;objStream.Type = 1&lt;br /&gt;Response.CharSet = "UTF-8"&lt;br /&gt;'-- load into the stream the file&lt;br /&gt;objStream.LoadFromFile(strAbsFile)&lt;br /&gt;'-- send the stream in the response&lt;br /&gt;Response.BinaryWrite(objStream.Read)&lt;br /&gt;objStream.Close&lt;br /&gt;Set objStream = Nothing&lt;br /&gt;Set objFile = Nothing&lt;br /&gt;Else  'objFSO.FileExists(strAbsFile)&lt;br /&gt;Response.Clear&lt;br /&gt;Response.Write("Le fichier est inexistant.")&lt;br /&gt;End If&lt;br /&gt;Set objFSO = Nothing&lt;br /&gt;%&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;P.S. I hacked this out from some download manager but don't remember it to give proper credit (sorry).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-5146629217569317348?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/5146629217569317348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=5146629217569317348' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/5146629217569317348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/5146629217569317348'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/08/download-file-script-for-asp.html' title='Download File Script for ASP'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-3944173739703194929</id><published>2008-08-14T08:55:00.002-04:00</published><updated>2008-08-14T08:58:28.052-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ActionScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><category scheme='http://www.blogger.com/atom/ns#' term='Pause'/><title type='text'>Pause Flash</title><content type='html'>&lt;span style="font-family:courier new;"&gt;// sec = number of seconds&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;function paused(sec) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    stop(); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    var i = sec - 1;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    var t = setInterval(function () {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        if (i == 0) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        clearInterval(t);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        play(); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    i--;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    }, 1000);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Then in a frame add:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;paused (sec); // change sec to the number of seconds for the pause&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-3944173739703194929?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/3944173739703194929/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=3944173739703194929' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3944173739703194929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/3944173739703194929'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/08/pause-flash.html' title='Pause Flash'/><author><name>Matt</name><uri>http://www.blogger.com/profile/08854844967867943577</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-1199757717926217784</id><published>2008-08-13T11:57:00.001-04:00</published><updated>2008-08-14T10:34:07.991-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP'/><title type='text'>PHP to ASP Quick Reference</title><content type='html'>I'm a PHP developer but the demands of clients always make you learn things you really don't want to... so I had to learn ASP (VBScript).  I think the hardest part about learning a new language is the syntax, but I guess that's the only real difference, right?&lt;br /&gt;&lt;br /&gt;Anyway, ASP is much different than PHP, in more ways than one.  I won't get into them but if you're struggling to learn it, or if you know ASP but are struggling with PHP this is a very useful reference: &lt;a href="http://www.design215.com/toolbox/asp.php" target="_blank"&gt;http://www.design215.com/toolbox/asp.php&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It saved me a lot of time because if you've tried to search for ASP code, like I have, you'll know it is much harder than looking for PHP references.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-1199757717926217784?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/1199757717926217784/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=1199757717926217784' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1199757717926217784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/1199757717926217784'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/08/php-to-asp-quick-reference.html' title='PHP to ASP Quick Reference'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-956364080789007324</id><published>2008-08-13T11:39:00.001-04:00</published><updated>2008-08-14T10:34:24.711-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ajax'/><title type='text'>Quick AJAX Reference</title><content type='html'>I started working with AJAX this past summer and had one reference that really helped me the most.  The site is: &lt;a href="http://www.captain.at/howto-ajax-form-post-request.php" target="_blank"&gt;http://www.captain.at/howto-ajax-form-post-request.php&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;AJAX seems intimidating because it's new and cool but it really isn't.  Simply put, it is a combination of JavaScript and a server-side language such as PHP.  It's just about sending and receiving data through JavaScript to a server-side encoded page (PHP page) and displaying the output information to a user without refreshing their browser.&lt;br /&gt;&lt;br /&gt;I'm finding that each new site that I do, I end up adding a little bit of AJAX flavor, so I'm sure we'll be finding more tips and tricks with it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-956364080789007324?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/956364080789007324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=956364080789007324' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/956364080789007324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/956364080789007324'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/08/quick-ajax-reference.html' title='Quick AJAX Reference'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-338240620364139367.post-4233768251563583669</id><published>2008-08-13T11:19:00.000-04:00</published><updated>2008-08-13T11:20:33.361-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Blog Begins</title><content type='html'>Well, we've been talking about making a blog of useful stuff so here we go.  This is just miscellaneous cool things we've found online (or from ourselves) related to web development/design.&lt;br /&gt;&lt;br /&gt;If you find anything useful, link to it and let others know.  Thanks!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/338240620364139367-4233768251563583669?l=phireitup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phireitup.blogspot.com/feeds/4233768251563583669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=338240620364139367&amp;postID=4233768251563583669' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4233768251563583669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/338240620364139367/posts/default/4233768251563583669'/><link rel='alternate' type='text/html' href='http://phireitup.blogspot.com/2008/08/blog-begins.html' title='Blog Begins'/><author><name>SaidK</name><uri>http://www.blogger.com/profile/11761477714463465469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
