| Out With The Old... |
Before we get into the code, a little theory to smoothen the way. Classic ASP programmers may remember how overjoyed they were at the advent of ADO, which made database communication a breeze and significantly reduced development times. However, with the ascension of .NET, ADO, together with other ASP staples, has been given a new lease of life in the form of ADO.NET
Nope, it's not just a name change hiding the same tired skeleton. According to the .NET development team, ADO.NET (like ADO) is a set of libraries designed to help developers access data from different RDBMSs, including Microsoft Access, SQL Server and Oracle 8. It does this through an object model supporting a wide range of object classes for connecting to a database, adding new information, updating or deleting existing records, and so on.
If this sounds familiar, hang on a minute - unlike plain-vanilla ADO, ADO.NET uses a new, more efficient object model which supports XML to simplify the transfer of data between two applications. Additionally, it allows "disconnected access" to data, wherein developers cache data on the local machine, work on it and send the changes back to the database on an as-needed basis.
New DataSet objects allow data from different sources to be merged together and treated as one - this makes it possible, for example, to have an online shopping store running off SQL Server and an offline accounting system running off Microsoft Access, and create composite reports using both systems without needing any complex import/export routines. Finally, ADO.NET allows far greater flexibility when it comes to manipulating record sets, and also lets you run multiple SQL statements simultaneously.
Simply put, ADO.NET rocks!
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!