Your Ad Here

Chicago Sports Fans!

Digg This Story

If you’re having a hard time getting tickets for the Cubs, the Sox, The Bulls, or pretty much any other Chicago sporting event, I found a site that can help you out. http://www.chicagosbesttickets.com/ was just launched this year, and isn’t charging you $500 for a ticket that’s only worth $30. Chances are, they have what you’re looking for.

For big events, like Cubs/Brewers or Cubs/Sox, be sure to call them as soon as possible.

http://www.chicagosbesttickets.com/

Rate this:
2.5

Digg This Story

Not my typical subject….

Digg This Story

But this is just too good to pass up.

“The Roller Blog” is having an 80’s photo contest. There is a grand prize of 1500 Entrecard credits for the best “1980’s” photo you can submit. Here’s a good example to the right here of what they are looking for. Crappy “laser beams”, horrible haircuts, blank expressions all a plus.

Check out the full text of the contest at http://therollerblog.com/?p=214, and be sure to put on your leg warmers and devo hat before visiting. Parachute pants are also encouraged, but not required.

I’m gonna go listen to some Kris Kross now… Word to your mother.

Rate this:
2.5

Digg This Story

My site does not validate

Digg This Story

And it never will.

The link is still down there, and if you read through all the errors, you will see that I coded my site using valid XHTML, but the plugins are not valid. But hey, guess what? My site looks the same in Opera 9.5, Opera 9.2, Firefox 2, Firefox 3, IE6,7,8, Safari 3.x, and Konquerer.

That’s valid enough for me!

Rate this:
2.5

Tags:, ,

Digg This Story

Flash is open source… nothing has changed.

Digg This Story

Simply put: Flash will not replace well-designed web sites based on html/css. To elaborate:

Saw this gentleman’s article on Technorati, and the title caught my attention.

Adobe recently announced that Flash and related files are going to be open source. This means that pretty much anyone can write and develop a program to author flash files. So what? This changes nothing.

My honest opinion is that the argument of Flash taking over the standard web page is moot. There are practical, well executed uses of flash, and there are practical, well executed uses of any of the other technologies mentioned. However, it seems that there are at least as many poor uses of each.

Flash has it’s place: Interactive, colorful, design-rich web applications, games, demontrations, advertisements, web intros, and so on. The key is that flash files use up bandwidth and computing power, and if used when not needed, can actually harm the user experience and usability. Flash files are also not indexed in search engines, which means that in order to have the page relevant on the web, the designer/developer must include additional content indicating what is contained in the flash movie/video. If the entire site is in flash… then no search results.

AJAX has simliar problems, and should be used when appropriate. The large-content AJAX staple “iframe” won’t be indexed, and users without javascript enabled (many office computers, terminals especially) cannot use the AJAX content at all. This means that developers must write code twice: Once for the general population, and again for those that can’t use the technology. Either that, or they stand to lose 1 out of 10 potential users of their software.

I hate flash. I hate how easy it is to make a really ugly navigation menu in flash. I hate how easy it is for anyone who … Let me interrupt myself here. I hate that because I have a web page open in the background that has a flash movie running, my browser just shut down, and I lost two sentences that I wrote because of it. I hate that 90% of flash applications could have been done better, faster, and cleaner using web standards, and without alienating those with slow computers, or those who can’t install flash at their office.

But just remember: I love a great looking flash-based website. Just a random search on google found me this site: http://www.singularitydesign.com/ . Very well done. The flash file is only 202K, which is much smaller than even the Yahoo! homepage. The content is clean, and flash is used to show off how flashy this particular web design company can make your site look.

Simply put: Flash will not replace well-designed web sites based on html/css.

Rate this:
2.7 (1 person)

Tags:, , ,

Digg This Story

Simplified PHP $_POST data handling

Digg This Story

When posting data from a form to a page, the $_POST variable gets set to an array similar to this:

Array ([name] => "daniel", [state] => "illinois", [phone] => "630-618-9588")

Now, one way to process this is to know in advance (which, normally you will), what the values will be, and set them to more usable variables. For example:

$newclient["name"] = $_POST["name"];
$newclient["state"] = $_POST["state"];
$newclient["phone"] = $_POST["phone"];

Now, for a simple form that only has one or two values, that’s fine. The code is clean, easy to read, and it gets the job done. Now, if you have a more complex form, the array may look more like this:

Array ( [lastname] => costalis [firstname] => daniel [MI] => g [lastnameguardian] =>
kolar [firstnameguardian] => maureen [MIguardian] => p [Month] => 10 [Day] => 05 [Year]
=> 1983 [Age] => [address1] => 445 n ardmore ave #k [address2] => [city] => villa park
[state] => IL [zip] => 60181 [phone1] => 6306189588 [phone2] => [phone3] => 6306189588
[email] => costalis.dan@gmail.com [feet] => 5 [inches] => 10 [pounds] => 165 [hair] =>
Brown [eyes] => Green [union] => Yes [experience] => None [skills] => Jumping [notes]
=> Great Guy [submit] => Add Client )

You can copy and paste 31 times, and edit all the values if you want… or, write something that will do it for you. (read: copy and paste my code and edit it to your needs) This particular set of code is designed to update a mysql database, but can be modified to your liking. the “safedata” function is to prevent hacking of your database.

function safedata( $string ) {
    return "'" . mysql_real_escape_string( $string ) . "'"; //add needed slashes,
enclose data in quotes.
}
foreach ($_POST as $field => $value) //Count through each post item
{
$fields[] = $field; //add current field name to fields array
 $values[] = $value;//add current field value to value array. Will have same index
as its field name
}

$query  = "INSERT INTO `SomeTable` ("; //Start of MySql query

foreach ($fields as $fieldname) //for each field name
    $query .= "`" . $fieldname . "`,"; //add field to list in query. safedata not
needed... you supplied the names

$query = rtrim($query,","); //trim off extra comma after final value
$query .= ") VALUES("; //close off field names, begin listing values

foreach ($values as $valuename) //for each value corresponding to its field
    $query .= safedata($valuename) . ","; //add value to list
$query = rtrim($query,","); //again, we have an extra comma
$query .= ") ;"; //end query string

$result = mysql_query($query); //excecute query
 // created by : http://www.whathuhstudios.com/press : attribution may be removed and
is not required

You could easily use this to assign the values to an array of your liking, or whatever you like. Either way, this is a nice easy way to deal with large form submissions without the use of a PHP framework. Do what you want with this code, and if you happen to include a link to my site on your site, or leave me a comment… then so be it. Hope this helps someone.

Rate this:
2.5

Tags:, , , ,

Digg This Story

Pages (12): [1] 2 3 4 » ... Last »