Tuesday

MySQL Limit, Null and Undefined, PHP Redirects

 
 Programming
 
From Scott Orgera, your About Programming Editor
 
 
This week's newsletter contains tutorials for ten different programming languages ranging from JavaScript to VBA, including a primer on the differences between null and undefined as well as the proper ways to use the Limit command in mySQL.
 
Follow us on:
 
Sign up for more free newsletters:
 
How to Add Tabs to HTML Pages
One of the most confusing things about HTML for a beginning web designer is the way that white space is handled. In print, the three primary white space characters (space, tab, and carriage return) act in three distinct ways. But in HTML, browsers render them all essentially the same. If you place one space or 100 or mix it up with tabs and carriage returns, they will all be condensed down to one space when the page is rendered by the browser.  READ NOW

How to Declare Variables in Java
A variable is a container that holds values that are used in a Java program. To be able to use a variable it needs to be declared. Declaring variables is normally the first thing that happens in any program. Java is a strongly typed programming language. This means that every variable must have a data type associated with it. For example, a variable could be declared to use one of the eight primitive data types: byte, short, int, long, float, double, char or boolean.  READ NOW

JavaScript: Null and Undefined
Both null and undefined in JavaScript can behave in ways that you might not expect. Null sometimes behaves as an object and sometimes not. If you use typeof to test for what null is then JavaScript will identify null as an object. On the other hand, null is the only object in JavaScript that is not an instance of the Object object. Fortunately neither of these tests would be very commonly applied within any script. In just about all of the cases where you would use null in your JavaScript code you would not care whether JavaScript treats it as an object of not.  READ NOW

How to Redirect With PHP
You can use a simple PHP script to redirect a user from the page they entered to a different web page. One reason you may want to do this is that the page they are trying to access no longer exists. Using this method, they can be seamlessly transfered to the new page without having to click a link to continue. READ NOW

 
ADVERTISEMENT
Featured Articles
More from About.com
Sign up for Shareables!
An every-morning rundown of the day in history, with headlines and trends produced by your pals at About.com. Click here to sign up! It's free (of course) and we think you'll like it!
Want More From About.com?
Check out our social channels tailored to every interest!
Sign up for more free newsletters on your favorite topics

You are receiving this newsletter because you subscribed to the About.com Programming newsletter. If you wish to unsubscribe, please click here.

If you would like to unsubscribe from all newsletters sent from About.com, please send an email to optout@about.com with "Unsubscribe" as the subject line.

Contact Information:
1500 Broadway, 6th Floor
New York, NY, 10036

Privacy Policy © 2014 About.com