mysql4u.com


PHP Book Review

Posted in php mysql book by mysql4u on the December 2nd, 2007

If I ask you what is the most famous and widely used web development language, what will your answer be? If you answered PHP, then you’re absolutely right. Now, if I ask you what is the most easiest server-side language to learn and pick up quickly, then the answer is again PHP. That’s right! PHP along with MySQL allows you to develop complex database driven sites without having a degree in computer science :)

Learning PHP is not as hard you might think. There are tons of books on PHP and the one I’m going to talk about today is the only book you need to start building PHP and MySQL applications.

“Build Your Own Database Driven Website Using PHP & MySQL” is designed to take you through step-by-step coding process of building complex database driven websites and help you enhance your skills in PHP and MySQL development.

Here is what you will learn in this book…

Installing PHP and MySQL

“Build Your Own Database Driven Website Using PHP & MySQL” starts of by helping you install PHP and MySQL on Windows, Linux or MAC. There is one section devoted to installing PHP and MySQL on each platform with trouble-shooting tips.

Getting Started with MySQL

In the 2nd chapter you will take your first steps into creating MySQL databases, tables, and inserting, deleting and updating data from your database.

Getting Started with PHP

The 3rd chapter basically gives you a whole tour of PHP. You will learn common programming fundamentals like, strings, variables, conditional statements, looping and much more. Who said you need a college degree to lean how to code?

Publishing MySQL Data on the Web

In the fourth chapter you will learn how to retrieve data form your newly created database and display it onto a page. This is fun chapter where you will create a small script to insert, delete and publish data from database to your PHP page.

Should I Learn PHP and MySQL or Not?

Posted in Mysql Lessons by mysql4u on the December 2nd, 2007

I’ve had quite a few people ask me this question: “Should I learn PHP and MySQL?”.

The answer is never easy. It all depends on what you’re trying to accomplish. Are you looking to be involved in your own website? Is it being run on PHP and MySQL? What would you like to do with your website?

There’s a million questions you can ask yourself. I, personally, believe that anyone who wants to become more involved with their own website or run their own Web Design and Development Company should, at the minimum, learn the basics of PHP and MySQL.

Why should you? Well, let’s take a few examples…

Maybe you want to create a Members are on your site and you want to be able to offer downloads, use a more interactive Contact script, show information dynamically for your customers (i.e. Time and Date, Their personal information, the information they searched for last, Billing information, Download history, username and/or password, etc) to make it easier for them to browse through your site.

Maybe you want to be able to use PHP for your Search Engine Optimization needs? Needs such as 404 Redirects, 301 redirects, etc.

Maybe you need to create a built in search system for your e-commerce site? Maybe you’re looking to simply redirect people to an Affiliate program?

See the many, MANY ways you can use PHP? It’s a very valuable tool to know and understand. Imagine yourself having the knowledge to take a product like Wordpress and fully customize it to your own, personal, needs?

Think you can make money off of one of your Wordpress Plugin Ideas by knowing PHP? Think you can build a better Content Management System than what’s currently available? What about a new Social Networking Script - OR Community?

Companies like PHPFox have made a killing with their php knowledge. Likewise for companies such as Mambo, vBulletin and various other scripts that you can purchase.

So the next question would be HOW you can learn PHP?

There’s a million ways to learn but I try to explain to everybody that watching Videos and DOING the coding practices they ask you to do is how you’ll learn quickly.

Sure… lot’s of people have learned PHP by reading books. But I find the problem with books is a lack of support. You’re always going to learn more by seeing and doing rather than reading and doing. Luckily there are solutions to this problem.

You can also visit popular forums such as Sitepoint, Digitalpoint and other Webmaster related forums or communities that allow other members to help with questions and answers.

No matter what you choose to do - just remember that DOING is how you learn. Practice without reading or watching. Just take the little knowledge you have at the time and make it grow with practice.

I hope you figure out what you need to accomplish and good luck!

What Is MySQL And Does Your Business Need It?

Posted in mysql business by mysql4u on the December 2nd, 2007

What is MySQL?

First released in May 23, 1995, MySQL is an open source database software. It is part of a large and growing family of open source software including Linux, Apache, and programming languages PHP and Perl. However, unlike many open source products where the copyright is owned by the individual authors or distributors, MySQL is owned and sponsored by a single for-profit firm, MySQL AB, which holds the copyright to most of the codebase. They develop and maintain the system, sell support, service contracts, and proprietary-licensed copies of MySQL.

MySQL is a relationship database, which is a collection of items or tables organized into predefined categories or described tables from which data can be accessed or reassembled in many different ways without having to reorganize the database tables. This format is enormously popular with more than 100 million copies of the software downloaded over the life of MySQL. The popularity stems from the fact that the databases are easy to create and access. Additionally, they are easy to extend, a new data category can be added without requiring that all existing applications be modified.

When creating a relational database, you can not only extend the data, you can define the domain of possible values in a data column and any additional constraints that you want to apply to the value of your data. This makes your information significantly more valuable and user friendly.

Uses of MySQL

There are many uses of MySQL for a business and you can find many significant case studies at http://www.MySQL.com/why-MySQL/case-studies/. Among them are many stories about how information generated from MySQL has saved IT teams thousands of man hours and thousands of dollars.

Here’s an example of how you can use it for your business. Consider a typical order entry database. It might include the following columns for customer information: name, address, and phone number. . Another table might describe an order and have these columns: product, customer, date, and sales price. This table and the relevant information could be used to show a report on all customers that bought products on a specific date. A financial services manager in the same company could, from the same tables, obtain a report on accounts that needed to be paid.

Craigslist uses MySQL to power more than 50 forums, among many other things, and Yahoo Finance uses it to aggregate headlines for its website.

Benefits of MySQL

Ease of use. A basic knowledge of SQL and database manipulation is required however MySQL is logical and easy to use. This means you don’t have to spend as much time and money either training existing staff, or hiring developers.

Security. There are not a lot of databases that can compare to the security that MySQL offers. It includes solid data security layers that protect your sensitive information. Rights can be set to allow some or all privileges to either individuals or groups. Passwords are encrypted. The access to your database can be controlled by a remote machine that can completely control what a user can view. The system can be locked down even more through the operating system.

Capacity and memory. MySQL can handle almost any amount of data from only a few rows to as much as 50 million rows or more. The default file size limit is about 4 GB. It manages memory very well, which means it functions efficiently and speedily without crashing or dumping your information. Additionally, MySQL server has been thoroughly tested to prevent memory leaks.

Unbeatable flexibility. MySQL runs on many operating systems, including Novell NetWare, Windows, Linux, and UNIX

It supports several development interfaces including JDBC, ODBC, and scripting languages including PHP and Perl. This enables you to create database solutions that run on all major operating systems, including Linux, UNIX, and Windows.

More than one person can access business information at a time. This means that a large group of people can access the information at once but there can also be several connections at one time.

Multiple storage engines, or types of table, allow you to choose which one is most effective.

Commit grouping, gathering multiple transactions from multiple connections together to increase the number of commits per second.

Technical support. One of the drawbacks to many open source products is the fact that the support is sometimes nonexistent or slow to respond at best. The products are free or close to free so it’s a trade off. However, MySQL Enterprise offers support itself, including 24/7 30-minute response time and the support team has direct access to the software developers.

Licensing. We’ve already discussed the fact that open source products are extremely cost efficient! MySQL AB makes MySQL Server available as free software, but they also offer the MySQL Enterprise subscription offering for business users and dual-license it under traditional proprietary licensing arrangements for cases where the intended use is incompatible with the General Public License agreement.

Drawbacks of MySQL

Early versions of MySQL lacked many standard relational database management system (RDBMS) features, usually with the goal of trading guaranteed accuracy for speed. Many (but not yet all) such criticisms have been remedied in later versions of the software, including transactions and relational integrity constraints.

Some say that MySQL’s feature list leaves something to be desired, but its fans swear that a scaled-down feature set means you only have to deploy, configure and maintain what you need

There are also a few common errors such as out of memory or packet too large they generally relate to the configuration of the server and are uncommon and the errors are fairly easy to remedy.

Bottom Line:

The uses of MySQL are seemingly endless and for a business the information gathered is priceless. Combined with PHP, it can be used to create dynamic web pages. If you’re using any type of web 2.0 technology like forums, online ordering, subscription forms etc…must utilize a database of some sort to gather and analyze the information. When it comes to database technology, there really isn’t anything that beats MySQL for stability, price, and ease of use.

MemberSpeed Content Management software can run on MySQL 3.23 and above.