| Building Blocks |
Let's start with the basics: what's a variable when it's home curled up on the couch?
A variable is the fundamental building block of any programming languages. Think of a variable as a container which can be used to store data; this data is used in different places in your ASP.NET program. A variable can store both numeric and non-numeric data, and the contents of a variable can be altered during program execution. Finally, variables can be compared with each other, and you - the programmer - can write program code that performs specific actions on the basis of this comparison.
Every variable must have a name - this name is used to refer to the variable, to perform operations on it, and to retrieve the data it contains. In C#, a variable name is preceded by a keyword indicating the variable type, and must begin with a letter, optionally followed by more letters and numbers. Variable names are case-sensitive, and reserved keywords cannot be used as variable names. For example, "popeye", "one_two_three" and "bigPirateShip" are all valid variable names, while "byte" and "123" are invalid variable names.
Every language has different types of variables - and ASP.NET and C# display no shortage of choices. C# supports a wide variety of data types, including simple numeric, character, string and Boolean types, and more complex arrays, structures, enumerations, classes and interfaces. Over the course of the next few pages, I'll be looking
How to do Everything with PHP & MySQL
How to do Everything with PHP & MySQL, the best-selling book by Melonfire, explains how to take full advantage of PHP's built-in support for MySQL and link the results of database queries to Web pages. You'll get full details on PHP programming and MySQL database development, and then you'll learn to use these two cutting-edge technologies together. Easy-to-follow sample applications include a PHP online shopping cart, a MySQL order tracking system, and a PHP/MySQL news publishing system.
Read more, or grab your copy now!