A little more than a year ago, MySQL extension finished its historical mission and retired.
For PHP programmers, this means if they still want to use MySQL database, they only have two choices: using MySQLi or using PDO.
This course will teach you everything a back-end developer needs to know about operating MySQL database using MySQLi.
But considering many new students also have either no or a very weak foundation in MySQL database, therefore, this course will first teach you all the fundamental knowledge about MySQL database.
Learning database operations takes time and practice, this course is doing everything it can to make learning MySQL as effortless as possible. All the important and confusing parts have been adequately emphasized so that you can avoid traps new learners often fall into.
Before you can operate a database using any methods, you must have a clear understanding of the structure of the MySQL database, just like before you learn how to drive, you must know what a car is for
Before you can operate a database, you just have to know its structure.
As a back-end developer, you will often need to create a database for your project, before you can design and create a database, you must have a clear understanding of MySQL database structure
there are many third party tools that can help us manage MySQL database. PHPMyAdmin is one of the most popular choices. Hosting service providers like godaddy even offers one-key installation for PHPMyAdmin.
Let's create a new database using PHPMyAdmin.
For better efficiency, easier management, and higher safety, MySQL uses different data types to store different kinds of data.
If you want to create a database table, then you just have to know data types used by MySQL database.
To design a workable database, what you need to know and what kinds of principles you just have to follow?
What does the word CURD mean?
Let's create our first database table.
Getting connected to database is the first step of operating database. We will learn how to use methods provided by MySQLi class to connect to database.
But you should also prepare for connection failure.
Let's get connected to the database using MySQLi properly. Getting connected properly means we should also prepare for connection failures.
First CURD: C
Put data into the database
demonstration of putting data into the database using MySQLi
what is SQL injection and how do we protect our database from it
How do you find out the ID of the row you just inserted?
Change the value of data stored in database, and delete rows from database table
Let's update the field value and delete a few rows from the table.
the first step of retrieving data from database: getting the object that contains everything
Let's retrieve the object and var_dump it!
You retrieve data to display them, so how to do the unpacking and display the retrieved data in a user-friendly way?
Let's unpack the object and display those retrieved data.
Sometimes, you do not care the value stored in the database, you need to analyze the data stored in database and draw a conclusion
a great helper when analyzing data stored in database
another great tool MySQL offered us
Let's find out why GROUP BY is so great!
using Alias can make your SQL statement look much more concise and neat
Let's set ALIAS for table names and field names!
sometimes, one table is just not enough. so how to retrieve from two tables simultaneously?
Let's find our what all the commodities each seller sells.
If there were one thousand rows matching your searching condition, you cannot retrieve and display all those rows in one try.
Pagination can divide a very heavy task into several small tasks.
Your server is happy and your user will have a better experience as well.
Let's create our very first pagination program!
Transaction is a great tool that help protect database data from being damaged by accidents
Let's create a program that can safely transfer $1,000 from Mr.Only to Mr.Kiosk!
No matter where and whom you take your lessons from, you will always have to do all the hard work yourself.
You have to spend time and efforts learning, understanding, memorizing and practicing new knowledge. This is NO short-cut here.
But a good course can show the best route and help you avoid traps and detours. You can achieve maximum productivity from your time and efforts.
Based on user feedback, tech development, and our new thoughts and inspirations, we will keep adding new contents and improving existing ones.
We will cover basics as well as advanced applications. You will learn smart and creative tech combinations as well.
Web development has been a popular area for years. The internet has accumulated tons of free tutoring videos and materials.
Even if you are stuck with questions you cannot solve, just post them on stackoverflow, you will have your answers within a few minutes.
With all the free tutoring materials and teachers, what is the point of creating this paid online course?
It depends on what you really want.
If you just want to have a rough idea of how web apps work and create some basic programs, then there is really no need for you to pay for any courses. Free internet information is more than enough to meet your demands.
If you want to be able to turn your design and idea into programs that are safe and efficient enough to be applied in real life and solve all kinds of challenge, then this course is perfect for you.
We believe a good online course should also be a navigator, not just explaining coding concepts.
It should show you where the real destination is and most importantly, take you there in the most efficient way.
Why we emphasize real destination?
First of all, you should know a program that can work is very different from a program that can survive in real life.
This is like playing a racing game on your phone is definitely not the same as driving a real car on a real track.
For example, in our PHP lesson, we will teach you how to create an upload program.
We have seen books and courses that only teach how to upload files.
If you run that program in real life, it will not last a day. It will do more damage than good.
For an upload program to work in real life, you need to check file type and size before letting any file being uploaded.
You also need to protect your program from uploading the same file repeatedly by keeping refreshing the uploading page.
Uploaded files should be properly renamed and stored. Most importantly, this process must be automatic.
Uploaded files must also be retrievable, therefore information about uploaded files should also be automatically recorded into database.
If one step is missing, your upload program will not survive the real life environment.
This is why we emphasize real destination. We want to show you the whole picture, rather than just a segment of it.
Knowing the whole picture is what separates a trustworthy professional programmer from a coding amateur.
Apparently the road to the real destination is quite long.
This is why a good course should be a navigator. It should show students the best route.
When designing our course contents, we acknowledge and most importantly, take in consideration two very important facts:
Everybody forgets and you have other things going on in your life and can only partly devote to your study.
This means your study will be constantly interrupted and when you resume your study, you might find what you have learnt has become rusty.
As a result, all your new knowledge are built on a collapsing foundation. At the end of your study, you will find that despite you have spent time and money, but you just cannot make satisfactory progress. You thought you have learnt everything but just cannot put them together can create a functional program.
So how do we solve this problem?
We divide our whole course content into small segments. At the end of each segment, there will be a review session summarizing everything you have learnt from that session.
When you are creating APPs, we will give a review session on key knowledge as well.
Apart from review sessions, we will also help you control your study pace. You will often hear we tell you that if you cannot answer this quiz, do not proceed and review previous lessons.
The biggest card up our sleeve is our content table.
You might think our upload program lesson starts here. But actually our upload lesson has started long before that. We have started to lay foundations for you since we teach you how to create a file type detector.
We divide a complicated program into components and will only add one component at a time. Most importantly, every time we add a new component, we will review the previous components again.
In the very end, despite the program we are creating is long and complicated, you will be able to master everything.