PHP
Objects Orientation in PHP - Creating classes and inserting data on MYSQL database
Objects Orientation in PHP - Creating classes and inserting data on MYSQL database
Hey guys.. i had a really hard time finding a good and easy material on the internet about objects orientation in php, showing not only how to create an object and give values to it, but also how to insert and rescue data on MYSQL database. That's why i've decided to create this tutorial to make your lives easier :D
The idea is to create a form where it can be included products and a form to list this products by category.
Object Orientation - Beggining
Well, as my ideas of doing something very easy using the Objects Orientation in php to people who are starting now didn't work when i used the sql, i've decided to create this new tutorial based in a friend's doubt.
The idea is to compare two variables A and B to see if they are equal or not :D
Let's go!
We're going to create a class that will have our methods.
File Letter.class.php - the name has to be with capital letter and the .class.php