I am going to show you that how to build a website by using the crud in php. I will show you four basic functions of Crud(Insert, Select, Update, Delete). This is actually object oriented technique to perform.
Let's start.... :)
First of all you should have knowledge about that how to use classes and objects in php.
Here is an example that how to write class in php.
Let's start.... :)
First of all you should have knowledge about that how to use classes and objects in php.
Here is an example that how to write class in php.
PHP Code:
- <?php
- // use the class keyword to define a class name
- class MyClassName{
- // you may also can initialize or declare data members and member functions here that can be public private or protected
- private $MyVariable=" This is test value";
- // member function of this class
- public showResult(){
- echo $this->MyVariable;
- }
- }// Ending the class
- // creating an object of this class
- $Object = new MyClassName();
- // Accessing the member function of class
- $Object->showResult();
- ?>
Result
This is test value
This comment has been removed by the author.
ReplyDeleteI guess today there is no person who would not use even a small degree a computer and web applications. We may not even know that we are just using such solutions, and thanks to them we are able to do a lot. Of course, it is not enough just to click in these programs, but I think that using them is also not very complicated.
ReplyDelete