Transcripts
1. Introduction To The Course: Hey, and welcome to the complete bab development calls using PHP and MySQL. Before starting this course. Firstly, I will discuss treating what this course includes. Why you pick this course and demonstrate some awesome projects, what we are building in this course. Now first, let's discuss what this course include. V, how 12k plus video lectures and counting included in this course. Which means that we are going to make new lectures all the time. And you have got 15 hours of video calls. We're going to discuss about PHP, basics of PHP, object-oriented programming in PHP and MySQL, et cetera. We also discussed the overview on the jQuery and some java script concept. The second thing is why this course is the right course for you. Because v add lectures all the time and add new projects. Discourse is easy to understand. I prompt answers to your question. I do care about my students and teach them portly, project-based, a full and friendly support provided to my students. You can send me the private messages as well. All the questions which is related to your course. I will answer. It's my pleasure to help you all the way until the end. My success depends on your success. I really want you to be successful in this course. Let's see what we are building in this course. We are building login system. In this course, we are building shopping cart features. We also build rating system where you can rate are leaved the feedback. Beside that, we also build the crude model, which is very important for any type of developer to understand how to create, update, and delete the items in the database. I also gonna tell you that how you are going to go live, what is c panel, and how you upload your website into the cPanel and how to buy the domain and hosting. I explained everything about the cPanel. This means that after learning that you will create your website and also you know how to live your website. Beside that, you will learn how to get the IP of the actual users, read the PDF files, convert the numbers into words and age, calculators and much more. Every project is well explained. And after every project, you will find the explanation lecture where we execute the project and overview on the code. Let us see what is the course descriptions. Our goal in this course is to learn an Application made an applications using PHP and MySQL. Discourse divided in ten sections. Each lecture include a video along with any documents or a project file from that lecture. You will also find the articles and coding challenges in this course. What do you need to know before taking this course? You need the basic HTML, basic CSS. You don't need to be explored in HTML and CSS as well. That technology and the concept we are using in this course are object-oriented PHP classes and objects, methods and the properties, access specifiers, destructor, inheritance, My Sequel form hurling, Alice and its type, functions and anonymous functions and other project-based PHP. As you can see, this is the course, what you are looking for. After learning this course, I guarantee you will secure your job interview and you will start working as a freelancer. I really take a personal approach to help on you achieve and success in this course. I hope to see you inside this course. Thank you.
2. What is PHP: Hey guys, in this lecture you will learn about that. What is PHP? Php, which is ten for Hypertext Preprocessor. Php is a widely used open source is scripting language. And PHP are executed on the server side. Php is server-side scripting language that is embedded in HTML. It is used to manage dynamic content, databases, session tracking, even build entire e-commerce websites. So here you will need PHP. Php, which is integrated with a number of popular database, including MySQL, PostgreSQL, Oracle, Sybase, and formats, and Microsoft SQL Server. Php is so popular because it's very simple to learn and code and deploy it on the server side. Hence, it has been the first choice for the beginner since decayed. Here you will see that what can PHP due at fastly? Php can generate dynamic page content, and PHP can add, delete, modify the data in your database. Then PHP can create, open a read, right and close files on the server. Php can collect firms data and the PHP can send and receives the cookies. You can use PHP in the large projects as well, where you can create your ERP systems, CRM systems, and you can create the complete e-commerce website. So the PHP is a programming language which is widely used for that purpose, as well as why we use PHP. Php, which is run on a different platform, like Windows, Linux, you next, Mac operating systems, etc. Php has support for a wide range of database. Php is compatible with almost all servers use today, which is Apache, is an abstraction. Php is easy to learn and runs efficiently on the server side, what are the advantages of the PHP and MySQL together? It is compatible with all operating system. Php is ideal for the Web Programming. The features of the PHP is, which is the native support for the most popular databases. Php create dynamic web pages where you can control your front end of your webpages from your admin parallel. Php also supports multilanguage and everything is a 100% remotely configurable. Bhp is open source and free. Hence, you can freely download and install and start developing using a PHP has a very simple and easy to understand sentenced. Hence, the learning curve is smaller as compared to other scripting languages. Php is cross-platform. Hence, you can easily develop and move the apply where PHP code and the project to almost all the major operating systems like Windows, Linux, and Mac operating system. All the popular web hosting services supports PHP and also the web hosting plans for PHP are generally the amongst the cheapest plants because of its popularity, PHP is the most popular programming language because most of the CMS, which is content management systems like Joomla or Drupal and WordPress are using PHP. With PHP, you can create a static and dynamic web pages, perform file handling operation, send, email access and modify browser cookies, and almost everything. Stat you might want to implement in your web project. Php can be used to create web applications like social networking. Examples are Facebook and dig. If you want to run your blogging website on the WordPress or on a Joomla, so you have to learn PHP. You can also develop e-commerce websites in the PHP. You can also use the CMS like open cart and Magento. Php is a common line scripting and you can create PHP script to perform the different operations on any machine. All you need is PHP parser for this. Thanks for watching this lecture. See you next lecture.
3. What are Front-End and Back-End Languages: Hey guys, welcome to this lecture. In this lecture we are going to talking about what is the front end and back end up programming language for anyone who does not work directly with web development concept like front end versus back end development can be challenging. To wrap your head, Iran buys on all of the framework, programming languages, APIs, and libraries that front end developer use to build apps. And it can be very confusing. Let's just see what is different between the front-end and back-end development in our programming languages. Where does the front-end or back-end means in web or mobile app development projects. If these doors come back to many times before the development phase, then it can, because they are particularly important in the development of a digital project by Abdu elopement companies. Let's just take the example of designing of web app. Imagine that your application development company would like to develop our triple B exchange and file-sharing app amongst a public accounting, for example, and a contractor who work your abs will require a user interface for the accounting client and admin interface, which will be accounted interface. To develop such an application, you will need at least two types of developers. A front end developer and a backend developers to understand where the interface and what are reputable app development company to present backend and frontend in the web projects. Let stake on the example, the front end and the backend development. Let us see the difference between them. Let us start with the definition of the concept. The behavior of any resource is based on client-server interaction. All web projects files are hosted on a remote server, which can even be located in the other corner of the world. Everything that is located and working on that server, late code and other files is the backhand. When a user enter a website address in a browser client software, a corresponding request is sent to the server, then some content is displayed on the screen in response. This is the front end. A back-end developer is responsible for developing the server side of our website. This invisible engines, different programming language such as PHP, Ruby, ASP.net, Java, Node.js can be used to write a code. The specific language is chosen depending on the technical requirements of a project. Capabilities of our team and a customer. A front end developer job is to create the client side of the website. This visual part has to look good, be user-friendly, be mobile, responsive, and displayed equally well using different browser like HTML, CSS, and JavaScript. All of this is that front end. A number of other elements and frameworks like Bootstrap and jQuery. Angular ember extractors are used together with this victory in other to greatly facilitated the development. In simple words, the front end development manage everything that the user visually see plus in their browser or the application. And the front-end developer are responsible for the look and feel of the site on the backend of the website or the backend developer. So the back-end development refers to the server side of an application and everything that's communicated between the database and the browser. This is card, the backend of the programming language. So this is the lecture today. Thanks for watching and see you in the next lecture.
4. PHP echo(Run Hello world): Hey guys, this is a very first lecture on the PHP programming. So here, this lecture, I am starting with a lot of enthusiasm and confidence. Hope you will enjoy that. Here in this lecture, we are talking about a very fast program, which is a Hallowell. As in any programming language. We start by writing our first program, which is the Hello World program. If you are working with PHP, if you were working with any other programming language, PHP scripts are lead, run, and display in the browser, as you know. But you could also run these types of scripts in the Kamar land as well. So running this script on the command line, you have to use your text editor as well, where you can use Sublime Text. Leaf had a structure, whatever the available other text editors as well. So creating your first UI applications. Here, I'm using dream viewer and I am using brackets as well. If you are working as a basic or if you weren't cooler, more evolved the PHP. Or if you are a beginner programmer, so I recommend you to use bracket. But VHA dreamy were as, as tender Watson and the developer version as well. So view how to choose dreamy were as well as the developer or the standard version. But at this stage, I recommend you to use a standard version. Here if you want to create or if you want to add a new file to your local host file. So you just simply create your files here or if you want to open symbol you have who clear dopamine. Here you can see that I'm just working with a new project, which is a PHP. And this is my first courting lecture, which is Hello World application. So you can see here I'm just creating a new file right here. So new file here, I decided that this is hello dot HTML. Remember that Don't give is between two texts like here you can see that I write hello and then I just give it a space and then word. So my recommendation is to don't give this piece between the words. Ok, here you can see that. So this is a PHP file, so I just did need this file here, or I just rename this file with the name of PHP. You can see here. And here you can see Edit and then rename. So here I just write hello world, and this is PHP file. Okay. So I just remove this. So here you can see there. So when I go to the exam folder and I just run the XAMPP right here. So you can see here, my XAMPP is open right now and I just click on his tart and is taught as well. So here you can see that my Apache and MySQL is running right now. Ok. Here you can see that I just go to the SG docs folder. And inside this HQ dogs, I just cleared this PHP course folder right here, so I just enter into that. So you can see here with the help of that, I just create a helloworld file right here. So my helloworld file is shown to me inside this PHP course folder right here. Okay? When it gets back, click on that and I just check this in open browser. So you can see here you can click on that. And you can see here, you have to open this in to the Google Chrome right here. So you will find that you can see here this is a local host, 8080 PHP cores and hello are, you can see here there is no window right here instead of United. United Dog here. Here you can see here, this is just our title right here, which is shown to us like this. Here you can see. So don't confuse it right here because our local host address is, let's suppose localhost. So you have to write your flashlight here, and then you have to write your folder name and then the file name right here, and the extension which is PSP or HTML. So if you are working with as m, So here you can see that this is the ATT ports. So I just said this local disaster on the ATD boat. So you have to simply config this and then go to PHP I and II, and you have to change your court has them. But if you are installing first-time as m, so just leave it. Ok. Here. You can see that I just go to my this texture liter right here or the compiler here. And I just, I'm just running a fast program, which is a Hello World program right here. So the beginning of the PHP, PHP Paul core is starting from the open tag here is you have write less than sign, then you have to write the question mark sign here. Then you have write PHP. Okay? After this writing this PHP, you have to write statement. And inside this equal statement, you have to write your program. Let suppose m is writing the output which is hello word. Then you have write this, the semicolon sign, then question mark and Gertrude and science for you, or this PHP is strings, is shows to me now browser, so I just save this file. Okay? So I see it right here. Yes. Then go to this browser and refresh the browser. So you can see here, this is the hello world as the output right here. Now just come back to that. And here you will see. So firstly, I have to write this beginning of the open tag right here, which is the PHP. Then equal is a PHP language construct for sending the text is trend. We can see here this is our text string, which is the helloworld, which is you have to send you a ready able with the help of daddy go statement and you have to set your HTML is perhaps as well. After that, you can see that I'm just writing this semicolon right here. So this is statement in PHP ended with a semicolon, which is equal statement or any state when you have to end with a semicolon. Then after that, you have to close your this statement right here. If you are working with the exam and if you are running the SAM file late here, so you have to add, you'd extension name with PHP as well. So you understand now, now here you can see that after that, here I'm just opening this file with the bracket. Bracket is also works same like our dreamy world. But it how the features and the green. Here you can see that same chord if you want to run them on another statement like hello world, hello world. You can see here I just saved this quarter right here when I just refreshed. So you can see here, this is the helloworld plants right here, which is lower than hello world and hello or whether you write three times right here. Helps you understand that both the editors are, I'm right here. This is a one-way you have write your statement inside this PHP. This is one another thing that you have read your statement. Then you have to write double quotations. Mark Harris write Hello World as well. So you have to write your statement like this, and at last you have write the semicolon as well. So this is another way you write your statement as well with a double quotations model. So you can see when I just run this, so this is the Hello World as what I just tried in statement as well. You can simply provide the text ISO, that tools to help decide H1 tag, which is my PHP tag file. So here you can see that this is the H1 tag right here. Okay? And here, let suppose I just write this is the H1 tag, and I just close this tag right here. And here. Okay? So you can see here when I just run this code right here. So this is my at one files. You can see here. Hopefully you understand that how this hello world programs work in PHP programming language. If you find any of the problem with the garden into the lecture, please let me know and thanks for watching this lecture.
5. PHP Comments: Hey guys, welcome to this lecture. In this lecture we are talking about the commenting what we are using in a PHP code. We heard two types of comments. The first one is a multi-line comment, and the second one is the single-line comment, which is supported in a PHP. Comments stick very important role in any programming language. If you are working with Java by TA1, C Plus, Plus PHP, angular, anything like a Java Script or any programming language. This is just because of if you are writing your core like a total line of course, then total n Of course, one lack lines of code or ten like lines of code. Or you may say this is a 1 million lan, of course. When you are watching your own cord after three months, six months, or after a longtime, let suppose a one-year. So you don't have to understand your own coordinate that are at that stage. Just because of there are two complex scripts what are using in our programming language. So at that time, comments take very important role. This will give you the complete understanding of your function, of your object, of your class or all of your program. Let us see how we cleared the comments inside PHP. Here you will see that inside this body tag here, I'm just writing this PHP script tag, which is the opening is repugnant here. I just write PHP right here. After writing PHP here, I have to firstly write a single line comment here. So you can see here this is a single line comment. One other way, you have to write your single land command like double backslash. And you can say right here, let's suppose i is right here. This is a single line comment to this. This means that this is one other way to have, right? You're cutting a line command. Now just turn to the multiline command. Here you have read backslash then is tearing science. So you can see here, this is multiple line. Here is write comment in PHP. When you are just closing this comment, simply write steric sign and then backslash. Okay, so this is one another a, or, this is the multi land command word. I am just writing here inside the PHP code. Then after that you had seen that Einstein equal. Then here it is, right, that is comment, lecture or lesson. Then after that I have to closest chord with the semicolon. Then question mark sign and then close this coordinate here. Hopefully you understand now that how we can write comments inside PHP, which is very simple, helps you understand now. So here you can see that I just go to the browser and here, check this out, put into the browser here. So it's right. Yes. So you can see here, my court is running no common shorts to me yet so far. And I'll just come back to this browser right here. Here in IDE or a texture neutral, you can see that PHP seem like C plus, plus java or any other programming language. This is also a case sensitive programming language. You can see here I just give this piece between these. So you can see here, I just remove this piece and then we go to the browser and refresh. You can see here this is or this is comment lesson or a lecture. This is very simple program where I am just writing here. This is a PHP comments. Hopes we understand now their comments takes where a partner enroll in any programming language and how we can use these comments in PHP. If you find any problem regarding to this lecture, please let me know and thanks for watching this lecture.
6. PHP Variable and its type: Hey guys, welcome to this lecture. In this lecture we are talking about the variables and its type in PHP programming language. A variable is a name unit of data that may be assigned to a value. If the value is modified, the name does not change. At that case. Let us suppose I have a variable x and x, which is equal to one. Here. This x is my variable here. And this is one as the value to this variable, and this is our operator. So we will learn about the operator in next upcoming lecture. Some variables are mutable, which is managed, their value can be changed. Other variables are immutable. This means that their value once assign, cannot be declared or alter after assigning the value. Php also has the variable and constants. Just like other programming languages, such as C, Java, and Visual Basic, angular. Variables are the storage space where you can distort the value of later use. They act as the identifier to access the memory location. In PHP, variables names begin with dollar, sign, whether or where's assignment is carried out by using the equal to operator. Furthermore, all the statements and up and up the semicolon that indicate the terminations of this statement. Another benefit of PHP is that we don't need to specify the data type using the keyword like integer, float, doubles, or strings as well. You just give it your value. Let, suppose you have to write your integer type value. You have great, you're floored value or a boolean value. Here you can see that firstly, I had to write dollar sign. Then let suppose I have the right variable. All the variable names is tarred with our dollar sign. As you can see here on your screen. Variable names are case sensitive. Remember that? Because the PHP programming language is a case sensitive programming language, this means, let suppose you here you will write the variable dollar sign and small VR. And here I am describing dollar sign and capital VR. So the compiler will consider these two as the different variables. All the variables name must start with the latter. Okay, you can see here, you cannot ride your variable name like 123. You have to start your Name with Letrozole. Let's suppose I have the right variable, then you have the right variable number one. Then you have right. Let suppose variable number two. So this is the wrong way you have to read your variable, and this is the right way you have to write your variables. The variable names must be contained any space. Like here. You can see that here you will write dollar sign. Then I just write let suppose first name. So this is not a legal variable name. Remember that if you want to write this firstName, so you have to write was underscore name. So you have to write your name like this. So this is the wrong way you have to declare your variable. Let's look an example here. And we will see that how this variables work. So variables are anything that will store some of the memory locations are memory is paste, or some debt will allocate some space in the memory location. So this is just a variable definition. Ok. Here I just write dollar sign. Then I just write variable and variable, which is equal to one. You have the right URL to close your variable with a semicolon sign. And then here I just write that equal. And equal here is dollar sign. And you can see here, I just write. And here you can see there I just write capital variable here. So that will not take this variable right here. You can see this is just because of here I just write a small variable and here I'll just write capital variable literacy are the output here because this is working or not right here. Okay? So here and is going to the browser run as a Google Chrome. So you can see here, we are in a line number 11, which is a variable dot PHP ledger C. And let us go to the compiler. And here you can see that this is line number 11 and we have declared, It's small and the capital variable here. So you can see here when you are just writing this as small variable here, I just go to the browser, refresh this so you can see here my variable value here is one hopes. So you understand that how we can work with variable, this is a one type of variable which is the integer variable right here, helps you understand how their work are the integer variables in PHP programming language. Now just turn to the floored points number. For floating point numbers mean you are value must contain. Let suppose 2.0. 2.4 or 3.5. Every plant value will be considered as the float number in any programming language. Here you can see that I just tried dollar sign, then Variable Number two right here, which is equal to here, I just write the value of pi, which is 3.14, okay? And here I just spend equal and variable number two right here, saved the court, go to the browser and refresh. You can see here we have the value right here, which is 3.14 right here. Okay, now here you can see that I just go to the browser right here. Sorry, compiler right here. And inside this compiler I have to write that this is the value of variable number three, which is equal to here. I just take this variable as the string variable, a string variable where you can set your character's eyes, right? This is variable. And I just run here, the variable number three right here. So you can see here by just fresh this. So we have an error in Lanham or 13. So here you can see that yes, we just missed a semicolon right here. And I just refreshed. So you can see here this is integer type, then this is floor type, and this is here. You can see that this is a string type variable rate here. So you understand now, okay. Now here you can see that V didn't have any land space right here. So how to give the land space inside the PHP? So you have to go to the ICO right here. Here I just write this is BR right here. This means that this is a single line break. Okay? You can see here. So when I just go to the browser refresh, you can see here that is shown to me like this. Firstly, we have the integer type than flow type and then in string type variables right here. No after that, you can also give the Boolean types variable as well. How we give it legacy. Here, I just write this is equal, okay? Or here I just write this is, let suppose we have a variable right here, which is the variable number four and variable number four, which is equal to here I is right that this is the value false here. Because we take Boolean l always as the true value or the false value as one. And here I just go to add equal and equal here. I had to call my this variable right here, which is a variable number four. And go to the browser and refresh. So firstly, I have to save this then here. Okay, so here we have browser right here, yes, okay, here at that Dave and you are just declaring a Boolean. So here I'm just not taking this value with this. Here you can see that I just declare or as defined, this Boolean value right here. And here you can see that I just create variable underscore dumb. And here I just read that or hear I just passed as the variable number four right here. So this is variable number four right here. So what is the variable dumb right here? The variable dump function is used to dump information about the variable. Dysfunctions, display the structure information such as type and the value of the given variable. At its end, the objects are explore recursively with the value intended to show the structure. So for that case, we are using the dump function right here. So this is a keyword of the delta function, which is a variable underscore DOM right here. Okay. Here I just copy this. And pistol right here. Okay, you can see that. Now just go to the browser and refresh that. And here you can see that this is a Boolean and the value here is falls right now. So I just get the datatype, which is a Boolean here. And the value of that as well, which is the false value. Hopefully you understand that these are the different types of the variables, what we use in PHP programming language. Here one thing, another thing I will tell you about the variables, what we are declaring right here. Here you can see that this is the dollar sign, which is, you can see that this is our identifier. Identifier means that this is, you can know that this is the variable sign and this is the identifier here. Then beheld the VaR, which is our variable name right here. Okay, now here I will tell you about the declarations of the variable and gave you the knowledgeable that here you can see that this complete here is our variable limb will be how the Declaration and the name as well. Or really how the identifier and the name of the variable as well. The whole thing, this is the variable name. Then this is equal to sine. So this is our operator. What type of operator is it? Will learn about this in the operator's lecture. But here, this is, I will tell you that this is the assignment operator, but we use here, which is is equal to sign, then this is one right here. Once means that the value is assigned to this variable right here. And here. This is the color right here, which is the end of the statement right here in this variable literally helps you understand now that how we can declare our variable, what are the types of variables and how we use them. Hopefully you understand now, if you have any problem regarding to this lecture, please let me know and thanks for watching this lecture.
7. Embedding PHP within HTML: Hey guys, welcome to this lecture. In this lecture we are talking about their imbedded PHP HTML. Which means that using PHP and HTML on the same page. One to add, if you want to add the HTML and PHP file together, while HTML and PHP are the two separate programming languages. But HTML is not considered a programming language. This is a markup language. Remember that you might want to use both of them on the same page to pick advantage of what the book offers. With one on one or both of these matter, you can easily embedded HTML code in your PHP page to format them better, make them more user-friendly. The matter you close depends on your specific situations. Firstly, I will tell you about that. How to use the HTML and PHP together. Let us see how we use it. Here you can see that this is HTML, and this HTML here is my HTML tag. Obscurantist Hannah notices the head tag. To this head tags means that inside this tag you have to provide or you have to write your title of the page that worked. This page is for or what this means. This court is four. Ok, here you can see that I just defined the Python, okay? And the title here is let suppose m is writing, this is embedded or here I just write that. Yes. Okay, this is embedding PHP with HTML. And this is embedding PHP has GML, ok, here you can see that this is just a title. When I just saved this core Google a browser, or here, I just go to the browser right here. And when I just run this corks, so you can see here, you can find embedded at PHP as HTML. Hopefully you understand now. Now here, after this you can see that this is our header section. Now just come to the body section right here. Inside this body section, I have to firstly write that this is at one deck. At 1s means is that the heading number one tag. So I just write that this lecture is for embedding PHP. Html. Just save this code, go to the browser, refresh the page. So this is the one size of heading right here. Helps you understand now. Now here I just go back to the browser. Here I just write for the paragraph right here. And I just said that this paragraph is for PHP and HTML together. Ok, so if the court and run the statement right here, so you can see here this paragraph is for PHP and HTML together. Yet so far I'm using HTML only. Let's just add some of the USA that a PHP tags as well. Here I just write PHP, ok, and here I just write equations, tell you that this is using for the output, or you can say that this is using for this single Porter annual report as well. Here I just write B, which is my HTML tag here. And here I just write that. This is lecture for PHP and HTML. And then I have to closest chord right here after closing the code right here. So this is in, Firstly, I would write this in a single quotation mark. And after that, you can see here. And here you can see that this is the colon semicolon, and then close this coordinate here. Save this and go to our browser, refresh this. So you can see here this is lecture for PHP, HTML right here. You can also give statements to the H1 tag as well. Here you can see that this is also H1 tag. And go to the browser, refresh there. So here it will not pick this edge yet. Okay, this is a heading because that will not take this as the H1 tag right here, ok. Here you can see that you can also write the PAG here. Before that. Here it is right for the bold hang. Sorry, this is the b tag right here. And here it is, right. This is heading. Okay? Refresh. Here you can see that this is the lecture for PHP and HTML, right? You can see here, I just bought this text here with the help of this b tag right here. Here you can see that how simple we are using HTML and PHP together. So this is just a lecture on that embedding PHP and HTML together. If you find any problem regarding the lecture, please let me know. And thanks for watching this lecture.
8. What is Case Sensitivity in PHP: Hey guys, welcome to this lecture. In this lecture we are talking about the case sensitivity in PHP programming language. Php functions, classes. Core language keywords are the case, insensitive you. That's me. You can write classes, functions, and keyword. In any case. For example, you can write your equal right here with that state. And you can write like this as well. These are giving you the output. Or you can write your date functions like this one. You can write your date functions like this as well. And you can write your function, dir function like this as well. Firstly, I hope to see these things and then I will move to next right here. Here you can see that I had read PHP. Okay? Into this PHP I had to write equal. And here I just write that. This is, is sensor do. In PHP. I just wanted to get the output right here. Then here I just write a BR tag. Here you can see that when you are writing inland beard hex symbol, you have red door sign and then you have Greg single end break. After that, you can see here I have read Capital equal right here. Then here you can see that this is the case centered on PHP than VR tab. And here it is, right case insurgent PHP and Harris Right, right here. And I just closest chord right here, helps you understand now. Now here I just check this in the browser. So here you will see that this is the case centered in PHP, VDS equal and capital equals. Well, here you can see that our port knowledge just turn blue next. Here I just write that equal and equal here is I have read that update function. Inside this, you can see here I have to write that first year, then month, sorry, here I had read year than monk and then data right here. Ok. Here you can see that after that I have right now. And then, and this is a BR tag right here. Nice closest score right here. Ok. Here you can see that I have right? Did with a capital. And here I have right? Yes. Okay. Date and here I have to write this dear sign with the format of dot as well. And is go to the browser, run that. So you can see here that will show me that today did as the date functions right here. Hopefully you understand now. Now here I will show you one another example with a case sensitivity. How is it? Here I just write PHP. Then here you can see that I just write let suppose the variable number one. Okay? This is the variable number one right here, which is equal to inherit his right there. Let suppose here I have the right variable number one right here. Ok? And close the score right here. Now here you will see that firstly, I will write dollar sign, which is variable number one and is equal to the one right? Now harris Red equal, and here I just write variable. And the variable here is, and this is the variable here is, I have read this variable number one right here. So that will give me the output. If I just write the variable number one like this. So that will show me the EDR into the compiler. This is also called the case sensitivity. Now here, I will tell you when another pin right here was that. Here. You can see that, that is, you may say that a whitespaces. So what are the whitespaces in any programming language? The whitespaces, the speeds between the ignore by the PHP dx means that the fine to leave the several new land. And let suppose here I strike this kind of a space into this chord and this chord. So this is car, the whitespace. So, so this is not a good programming practice. So you have to leave, that's much lines into your cold. Helps you understand now. So these are the case sensitivity in PHP programming language. If you find any of the problem regarding this lecture, please let me know and thanks for watching this lecture.
9. PHP echo & Print Statement: Hey guys, welcome to this lecture. In this lecture, we are going to talking about the difference between the PHP and the print statements. And how we can display these statements into the browser. Since ICO is a language construct, not actually a functions like if statement or if else statement. You can use it without parenthesis or with parenthesis. However, if you want to pass more than one parameter to the equal, the pedometers must not be enclosed within that pedometers. The statement, for example, used to display the output. It can be used with parenthesis, air or without the parenthesis there, just seeing what is the parenthesis and without the parenthesis right here, you can see that here I just write that this is the equal, and here it is, right? This is hello. Okay? Here you can see that this is without the parenthesis right here. If we write this inside the parentheses right here. So here is right that this is Hello world. Here. You can write this equal sign with the parenthesis right here. Hopefully you understand now that how we can use the equal can pause the multiple strings, which is subtracted by the comma and does not return any value. Remember that is faster than a print statement. Leisure turned to the print statement. So the trend is treatment is also a statement. For example, it is used to display the output and it can be used with the parenthesis, which is here you can write, let suppose here I described that PHP. And then here you have write print statement. Inside this print. Here you write like hello world. And seen as a case like here, this is word and same is the case like equal. You have a right to a print statement without the parenthesis. So here's write Hello World right here. Hopefully you understand now that how we can use the print statement. So you can also use print statement as an alternative to the eco statement to display the output to the browser like the print is also a language construct, but it is not a real function. So you can use it without the parenthesis and with the parentheses as you can see on your screen. So both ego and print statement were exactly the same. Why expect the print statement can only output one string at always return one value. And that's why the statement consider Laika magnetically deltas of cluster than the print statement. If the statement does not return any value, which is the eco statement, okay? The print statement consider as the slower than ICO as well. Okay? And you can and does not pause the multiple arguments in it as well. So you understand now what is the difference between the coal? What is the difference between the print statement? If you find any of the problems we got into this lecture, please let me know and thanks for watching this lecture.
10. What are Die and Exit Functions in PHP: Hey guys, welcome to this lecture. In this lecture we are going to talking about the dye and the exit function in PHP programming language. The die is an built-in function. In PHP. It is used to print and the exit from the current PHP script. Let's just see how it is used to exert the pH current. Php is, let's suppose v, how the variable right here, which is they care we held a variable name, which is website. Ok, this is the variable image is website, and the website here is, I have write that as two DBS. And here I have write colon double backslash, and then Google.com right here. Okay. After that here I'm just creating fopen functions to open any of the core functionality in the PHP. And here I can write that R dollar sign. And then I have got this variable right here and here I just write R. Now here you will see I just use a dye functions. Do you use the dye functions like this here you can see that you are unable to access or connect to the website or to the variable website. Okay? You can see here and closest score like this. And it is go to the browser. Here you can see that the output, you can see here that this is not shown to you. Ok, here you can see that this website is not shown to you. You can see here again. Okay, hopefully you understand now that how you can use the dive function with the help of PHP programming language. Now let us turn to PHP. And here I have to write the exit function as copy and paste here. Okay, you can see here this is how we can use the exit functions like the simply I have to replace this one. Okay, so what is the exit function? The exit function in the PHP is also a built-in function which is used to get the output or a message which is terminated. The current described. The exit function is only terminates the execution of the script. The shirt DOM functions or the object destructors will always be executed even if exit function is card. Okay, let's just see how. So you can see here as you find the exit function as well. And here you can see that I just commenting this and after. How great. This as well. Okay, so here you can see here is OK, fine. And yes, Okay, now it's fine. So run the score. So you can see here as that this side you cannot be reached because of this exit function. Helps you understand now. So if you have any problem regarding this lecture, please let me know. And thanks for watching this lecture.
11. Basic DataTypes in PHP: Hey guys, welcome back to this lecture. And in this lecture we are talking about the data types. In PHP programming language. The PHP supports the several types of data type. Some of them are scalar data types. Some of them are a component type, and some of them are, there's pressure drag. But here in this lecture or in this state VR talking about the scalar data types in a PHP programming language, which are Boolean, Integer, floored, string. Let first talking about the integer data type. The integers data types are the whole numbers without the decimal points number. Let's suppose you have to write like her minus two, plus two. Or here you have raid 012345. This is called the integer types number, which is from 0 up to nine. So you understand that what are the integer littered hives in PHP programming language? Let us turn to the Boolean data type. The Boolean data types, which are the only two pipes, which are the true and the false. If this statement is true to that really isn't. The value is true. If the S1 is fault, the zircon value here spot. Then we have the floored points number inside this floodplain number. Let's suppose you have write minus 5612 or you have to write plus 5-6 one pool, which is quite tool 00, and then you have the right pointer and then you are adding the plants here between the, between the numbers. So this is called the floored numbers. Then we have the strain types wizard. You can write you a string. Let suppose abc, x, y, zed, or any of the name right here. Hopefully you understand now that these are the some kinds of data types in PHP programming language. Here you can see that let's suppose I'm just writing PHP. And then here I have to close this. And then here it is, right? And let's suppose dollar. And here I just write this as integer right here, which is equal to here. I just write that this is 123, which is a decimal point. So decimal numbers, okay? Now here you can see that I just read variable underscore dump here, and here I just in Pali pause the variable of integer right here. So this is how VR getting the integer numbers right? Now here let suppose I just create flawed numbers. So here you can see that I have to write this as the float. And then here you can see that I have right, like 123123, number eight here, okay? So here it is, right that this is the floored numbers as well. Then here we have write him off the strings as well. So you can see here, I have to write this as a string, and then you have to write that this is the string variable. And here I have write this as the string as well. Helps you understand now that these are some of the strings id or dime. At the last, You can see here I'm just creating the Booleans value, which are, you can say that this is true and here it is right integer, which is Bool. And here this is also an integer, it is Boolean rage. So you understand now, here you can see that these are the some of the data types, what we studied about these in PHP. So here you can see that firstly, we heard the integer type, then we have the floor type, then is trying. So you can see here this is a string right here. And at last you can see this is a boolean right here. So these are the some of the data types. And how you can declare this, this is up to you. You can see here integer, float, strings, and Boolean as well. Hopefully you understand now this lecture. If you find any problem regarding to this lecture, please let me know and thanks for watching this lecture.
12. PHP Constants: Hey guys, welcome to this lecture. And in this lecture we are going to talking about the constant in PHP programming language. In computer programming, a constant is a value that cannot be altered by the program during the normal execution. For example, if you declare the value as the constant, then the value is associated with identifier. Let suppose the identifier here is a keyword constant or the keyword define. Okay? So as a constant is said to be unnamed at they're all true that term constant and the name constant are often used interchangeably. And this is constant with variables which is an identifier with a value that can be changed during a normal execution. The value, for example, the value is the variable. The constants are useful for both programmers and the computers as here you can see that let's suppose L, two types of variables. The first variable is declared as the normal variable. And then here I am declaring the constant right here. Inside this variable, you can see that the value of the variable can be changed at any time during the execution of your program. The usage do is toward the data, and that might change during the program of execution. This is card, the variable. Now what is the constant rate here? The value of constant is not changed during the execution of the program. Hope so. Your concept is much clearer now. So the use of the consonant is declared something that won't be changed during the program. Execution. Helps you understand now that what is a constant and what is the variable age here. Now here I will tell you one more thing about the constant right here. Let suppose V, How the constant declarations right here. Firstly, you have great constant. Then you have right. Let suppose integer or you have read the dollar sign right here. This is a normal program practice. Ok. Then you have read, let suppose we have the variable number one, okay? And then we have the value, let's suppose five or the value six, okay, and then add the last vehicle, the semicolon sign, which is the end statement. Here you can see that this constant is our keyword here. Helps you understand now, or I just write are defined right here. So this defined is also a keyword right here. This integer here is. The data type, what is not used in a PHP programming. So this is just for clarification. Here you can see that this dollar sign here is identifier, is Your name of the constant at the variable stage V, How this name as the variable name. But here you can see that this is our constant name right here. And this is our initial value, which is five or six, okay? Hopefully your concept and much clear about the constants in our PHP. So in PHP, constants are names, identifier, visit defines simple value. Once it is defined, the value of the constant does not change through the program. How you can define the constant right here. Just see here, I just write PHP. Then I just close this PHP tag right here. No, let's suppose I just tried equal statement right here. And inside this equal statement, I just create firstly create a constant. And then constant here it is. Let suppose V here to define the constant first. Ok? So you, to define the constant with the help of concert as a keyword or defined as a keyword. But mostly in the case, you have to define that. Okay? Now first thing, let us suppose here I'm this TO providing the value of pi. Very simple program here. And here, just write 3.1 for the value of pi is always 3.14 right here. Then here you can see that this is a statement arises, provide this as the value of pyrite here. So this is equal and this is the value of pi here. Then here I just write equal gain. And then here I just write that this is circle, radius value. And here I have to write one of the empty string. And then here we have a right to this static means to multiply a by pi, which is multiplied by phi. So I just get the value of the radius right here. Now here you can see that this is over all lecturer. And here we can see that I have to write, write, go open this into the browser. You can see here 3.14, puzzling to get the value of pi right here, then album constant which is not changeable right here. And here you can see that the radius value here is 331.4 right here. And we did this trick of multiplying by a pi. And then the REL five right here. Hopefully you understand that how we can define the constant in the PHP. Okay? Now here you will see that there is a two-way, as I just told you, that CPU methods, how refined cognitive mind the constant plus one is to define user-defined keyword and the thickened run here is use the concert as a keyword. Now here I will show you one another example right here with w fine and constant epsilon. Now here you can see there. Php, we're, I just tried. Sorry, this is normal class right here and here I just write this as defined and you find that the keyword right here. Now here I just name of the constant right here is ABC. And here I just pause a string that is ABC right here. And this is also a value right here. You can see here, I just defined the constant, which is the name of the concern here is ABC, then the value here is abc right here. Now here is my equal. And equal here is, you can see this is abc. If I just write is Molly BC, that will not take the output as small because this is a case centered or language right here. And you can see here and I just go to the browser, rephrase this. So we have an error in line number 17 right here. Yes. Is it yes. Ok. Abc and it is true. Okay. Or here you can see that. Yes. Okay. I was fine. Nose, run it again. So we have an ad right here, again, which is define. And do you find here is abc. Okay, this is the variable here. And yes, dollar sign, and then I just run this. So we have an editor again. So he thinks all we did little mistake right here. So here you can see that I just defined into the string right here. So you can see here this is a double quotation, so that will take this as the name right here. So this is abc right here. Now and I just run this course. So you can see here this is the ABC right here with the help of this string. So this is where isis define the constant with the help of defined as a keyword. And it will just turn to that constant using the constant keyword. So we can also define the constant in a PHP using the constant keyword. But we can only use constant keyword to define like a scalar constant. For example, you have read integer floored, and Boolean. If you are declaring the add a or anything. So you have to use the define as a keyword, okay, at that stage. Ok, so you understand now, now here you can see that how we use the constant keyword right here. Okay? So here you can see that I have write PHP. Then here I just used constant as the keyword to constant name here is XYZ, which is equal to here it is, right? This is constant keyword, okay? And then I just write a discloses score right here. Then equal and Harris, Right? This is XYZ, okay? And I disclose as core right here. When I just run this. So we have an error in line number 24, ESV, just miss this PHP here. So you can see here and now here I just gave it a single embryo. Now is just run this course. So this is the constant right here. You can see that with the help of the constant keyword. Hope so you understand now that how you can define the constant, what are the constants in a PHP programming language? So keeping the mind that 3114, which is the value of pi. So this value of pi cannot be changed in any case. That will be the same every time because this is the venule pipe or you have to provide the value of gravity as well. So these types of value cannot be changed to adapt cage case, you have to use your constants. Helps you understand. Now, if you find any of the problem regarding this lecture, please let me know and thanks for watching this lecture.
13. Operators in PHP(Arithmetic Operators ): Hey guys. In this lecture we are going to talking about the arithmetic operator in PHP programming language. Before starting the arithmetic operator, we just need to understand that what is the operator exactly? Operators are symbols that still the PHP processors to perform the curt certain exons. For example, let's suppose I write a plus B. So it is a variable here, B is a variable here, but plus here is our operator. Similar case late, I just write a which is greater than B. So greater than sign here is our operator, a minus b, a divided by b, and you have to write Tariff B. Ok, so these are the operators in the PHP programming language. Or if you take your other languages like C plus, plus java and any of the programming language. So these are the same as the operators. Now here in this lecture, I will show you that what are the arithmetic operators in a PHP programming languages? The editing metrics operator are, you know that these are the symbols which JL plus sine is equal to, sorry, plus sign. Then you have to write minus sign, then you have to write multiply sign, then you have to write d N. The modulus sign. The modulus is declaration. You have the right person they sign as well. So let's suppose V L E, which is a plus B. Then we have a minus b multiplied by b and e divided by v. Seems a case like gay modulus of b. Here you can see that seems a case like you have right, your variable, identify with it. So this actions performed the addition, subtraction, multiplication, divisions, and the more or less right here. Now just turn to the example of the arithmetic operator error is show you that what are these examples for. Here I decided this is the PHP right here. And then I just grows as PHP tag right here. Now herbicide dollar sign X, which is equal to 20. And then here I just tried variable y, which is equal to as right, 50. Okay? So we have two values right here, which is x is equal to 20, and then Y which is equal to 50 right here. Now here I'm just showing you that how we can write or assignments operator simply I have write equal. Then here after that I hope ride variable x, which is let suppose minus variable y. What will be the output of that? Here, I just run this. So you can see in the browser right here, sorry, in the browser, Google Chrome. So you can see here we have l minus 30. This is just because up here you can see that you have to write t minus 50. So 50 is a beer to then grantees. So here, this is the answer is 30 right here. Helps you understand now. Now here I will go to add addition right here. Then here I will add subtraction. Then here I will add division. And then here I will add the modulus sign. Okay, when I go to the browser, run this. So this is not looking very cool. So here I have to write that. This is dot. And here I have to write that this is the BER for a single n-bit. Okay, let me just run this course. So yes, the comma here murders his dog. Okay, now here you will see that same is the case like this on now and I just run this course of facility. You have to see your subtraction, then additions, then multiplication, then division, and then you have to write your modulus sign right here. As you can see. Like these are the assignment, sorry, these are the edited metrics operator in the PHP programming language. Hopefully you understand that. What are the PHP assignments operator and how we use them. If you put any of the problem regarding to this lecture, please let me know and thanks for watching this lecture.
14. Operators in PHP(Assignment Operators ): Hey guys, welcome to this lecture. In this lecture we are going to talking about the assignment operator in PHP programming language. The assignment operator are used to assign the values to the variable, either as it is or after performing some arithmetic operations on it. How legacy is equal to, which is a sign of assignment operator. Same is the case like you have red plus and minus sign, which is same as the our arithmetic operators. Then you have red minus is equal to, then you multiply is equal to n, is equal to n. The marvelous at equilibrium. These are some of the assignments operator in the PHP. Let us see how these Alzheimer's operator or work in the PHP server-side PHP tag and then close this PHP tag right here. Now here, you will see that I have right next up both variable e, which is equal to 50. Ok? Here you can see I just define statement. And inside this equal, I helped write that. Let suppose this variable. So our output here will be, you can see that 50, just because I just assigned the value h2, which is 50 right here. Here you can see that when I just run this code into the browser right here. So as you can see here, my this output here is 50 date. Now. Now here you will see that I just close this. Here. You will see isis right dot. Then VR. For the single embryo. Know after that, I just tried variable E and E, which is equal to, let us suppose I write this is for 40, okay? This is one other variable which I just declared right here. Or you can say that I just read declared this variable right here. Okay? Here's just write e, which is equal to, I'll just write that this is 20. Now here, I just write this, which is okay. And then here I just closest score right here. So what will be the, our output right here when I just run this court? So the output here is 40 plus 20, which is equal to 60 right here. This is plus N equal goo. Or you may say that the sine assignment operator in PHP. Here, the logic is created. What is you can see here? This is plus N. So here you can see that v, how the variable ie, which is equal to, you have right here again. Okay? This means that you have right, that variable, a variable which is 40 plus 20, which is equal to 60 right here. Now here you can see that I decided variable a which is equal to 250. Then here I just write, let us suppose minus sign right here. And here I have write that single embryo. Then I just run this course. So you can see here, this is 20 right here. You can see. And the output here is 30 days because of 50 minus 20 is equal to 30. Hopefully you understand now that how we can use the assignment operator in PHP programming language. If you find any of the problem regarding with this lecture, please let me know. And thanks for watching this lecture.
15. Operators in PHP(Comparison Operators): Hey guys, this lecture is consist on the comparison operator in PHP programming language. The comparison operators are equal to there is slightly different between equal to, equal to sign. Then you are assigning some value to the variable. So you have to write this equal to sign. Then you are comparison between the two ALU, let suppose is equal equal to E or E which is equal equal to b. So you have to use this statement. If this is statement meat. So you will have the expected result as a true if this statement is not. So you have expected reserve as the faults. Then you have the identical operators. Via you can add a3 is equal to sign, then you u not equal to, not equal equal to, which is identical right here, okay? Here you have the greater than sign, the less than sign, and greater than equal to n, less than or equal. Hopefully you understand now that what are the identical non-equal to, not identical, greater than, less than, and greater than or equal to and less than or equal to o. Let us see this example in two dot PHP code. Here you can see that let's suppose VL, the variable here is x and x and which is equal to ten. Then we help one another variable, which is y and y which is equal to hair is right, this is 15. Ok? Here you can see here another thing, or when another variable or damaged adding right here, let suppose v, how the variable E and E, which is equal to, here, I just write five. Ok? Hopefully you understand what data type I'm using right here. So this is a preview. You can judge your arm. So here you can see that at last I will tell you that this is a word means ordered type is here you can see that dollar sign X and X, z. Okay? Here, when I just run this code into the browser. So you can see here google Chrome. So we have an error line number 13, which variable here? And underscore, which is equal, equal to that right here. Sorry here. This is a because I am taking x, y's there, okay, sorry for that here, when I just run the score. So you can see here this is a boolean, false. Why does it Boolean cause right here. I just write pen as well because the access time is ten of them. And I just run this. This is a true statement. Here you can see that I just write e, which is compared. Ten, which is a string right here you can see. And here I just said that X, which is also equal to ten. So the value here is also done in value horizontal. Then here you can see that I just write a, b, c right here. And I just refreshed. So you can see here this is a false value. This is just because of here. This is the integer type and this is a string type variable. If I just match this string into an integer. So you can see here this is showing that true value, right? So don't configured right here. Just focus on this is equal to operator. Now here you can see that I am just writing the identical operators as well. Then I just run this score. So you can see here this is a Boolean value which is fall. This is just because of this is identical operator because now it's taking the identity of this integer and my string as hopefully you are concept is clear. Now, this is a string type variable. What I just told you that I will tell you literally about this. Now, here you can see that IS right, which is not equal to y. Ok? Here you can see. So this is true just because of the value here is ten and valued is 15. So this is not equal to. Then here I just write this less than sign. Then here I have less than or equal to. Then after that here I just write that this is greater than. Then here you can see that I described that this is greater than or equal to. And now I just run the score. Here. We have an error on line number 617, which you can see here in the line number 17, which is less than or equal to yes. Here you can see that I have to write less than or equal to like this. Okay? Obscure earns ten. Now, now is just run the score. So you can see here, we hell one value which is ten, then y value which is 15, and zed value edges variable. Ok, here you can see that the value here is true. This is just because of v, x, which is equal, equal to, sorry for that here we have the value ten by x, which is equal equal to e. This means there are ten, which is equal to ten right here. So this is cool. Then we have the value of this is Paul, just because up here we have the identical operator and identical operators check the identity, which is x is equal, is equal to E. So which means that this is the data type as the integer and this is the return type as a string. So that is false. So that's why this Boolean value error response. Then here we had a boolean true and you just because of X, which is not equal to y. So true. Because here we have the x is ten and y is 15. So this is not true. So that's why here you can see that this is the boolean, boolean value true right here. After that we have the boolean value true just because up here you can see that ice, right? X less than y. So sorry. Here we how the boolean value true at this stage? So i'm just checking the core right now. Yes. Okay. So x, which is equal to ten, which is less than or equal to y. So this is true. This is because y is 15. So this value here is true. Then we have the falls and policies when just because of x is not greater than, x is greater than y, because x is ten and y is 15 right here. And same is the case like nasa statements. So x is ten and y is 15. So that's why this value is also not true right here. Hopefully you understand now that what are the comparison operator and how we use it in the PHP code. This is very simple lecture. If you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture.
16. Operators in PHP(Incrementing and Decrementing Operators): Hey guys, welcome to this lecture. In this lecture we are going to talking about the increment and decrement operator in PHP. These operators are the unitary operators. For example, they require only one operand. Helps you understand now, let's suppose v, how E, which is the value is plus, plus and e is my variable right here. And then we have the a which is minus minus. So this here means that this is the increment operator, and this is our decrement operator to deduct one value from your or to decrease one value from your operator, sorry, variable. So you have, this means that this is the decrement operator to add when value into your variables. So this means that this is the increment operator. We have four types of increments and decrements operator. First one is pre increment operators, which means that it will first increment the operator and then add one to it. What does that mean? Let suppose v, how the value is five here. So firstly, if we are declaring equal here. So at the first stage, you can see here that we'll add one value here, which is six, and add the next stage. This value will be six right here. But if you are writing a post-increment operator, so firstly, that will check the condition if this condition is meat resist five. So firstly, that will give you the output as the five, and then that next stage that will change the value. And same is a case like our decrement operators will be how the predicament operator and the post decrement operator as well. Now in the coding, I will tell you about that, that how we use pre-increment and post increment operator in PHP. And after that, we also see the post decrement and predicament operators as well. Here you can see that I just write PHP and then closest PHP code right here. Now here at fossil stage, I am just writing a pre increment operator right here. What is that? Let us see how the variable x, which is equal to five. Okay? And here I help write def statement. And this statement, I just tried a pre increment statement right here, where I just write two plus signs. Then here dollar sign n x. This is dollar sign an X right here. Legacy here you can see that I just read equal. Then here I just get the value of that pre-increment operator. So that will change at this is take this value here is 66, adds them. Let us see the output right here, which is increment and decrement operators for the pre-increment here. So you will find. Provide here, sorry for that. I just nod open XAMPP right here. After running the XAMPP server. So you find that this is my decrement of Assyria increment, pre-increment operator right here. Here you can see that I have to write layer. Suppose this is equal. And here I could write that appeared HEC, Ok, for the single line breaks. So that will be a better understanding now. So you can see here six M6 right now. Now you just see that post FX, or sorry, a post-increment operator right here. Here I am just writing. Let suppose this equal right here. And here is ice, right? This dollar sign. And get this variable right here, okay? And after getting this variable right here, I have plus, plus signature right here. And then you can see here I just write equal than dollar sign and X right here. Okay? Now you can see here, this means that this is a post increment operator. Now here when I just run this, so it is better to add your value right here, which is the next one you let suppose the dollar sign x and x here is equal to four. Okay, this is four right here. Knowledge to see when I just run this code right here. So and now it's fine. Now here you will see that. So firstly, we have the value is six here. Then this value here is at this stage. You can see here we have the value here is four. I just tell you about that. And after this post increments, so you can see her beheld the value four here. And after that you can see here v, l, the value converted into the five. Here it will add one value with four, which is equal to five right here. So this means that this is post-increment operator. Let us declare our decrement operator like that. Ok, here you can see, here we have the value six. Then this is our pre-increment operator, sorry, predicament operator, which is minus minus sign. And then here you will see that I have to write that this is the value ten. Then here I have to write x and decrement option right here. Run this course. You can see here. Now we have the value ten right here, and this is the value six right here. Let's see. So firstly, how at this stage you can see here this is the value six here, and I just want to decrement this value 64 at pre-stage or the decrement operator. And initially this will change this value into the file. Here you can see that firstly, that will show me the output as a ten, as the initial declarations in the post decrement operator. And then here you can see that that will convert this value into nine, which mean that ten minus one. So this is how we are using the increment and decrement operator in PHP programming language. Hopefully you understand now that how you can increment and decrement your variables in PHP. If you find any of the problem regarding this lecture, please let me know and thanks for watching this lecture.
17. Operator in PHP (Logical Operators): Hey guys, welcome to this lecture. And in this lecture we are going to talk about the logical operators in PHP programming language. The logical operators are let suppose v, how the different types of logical operators like AND OR XOR and nor the operators. The operators is, let suppose we have the value of a0, value of p. If value of e is mass value of B. So then we have the true result. Or if the value of a is not equal to the value of b. So here we have the resultant value is false right here. Then we held our statement. So in our if statement, if value of e and value of b is true, so the resulting venue here is true. Or if Eve and u is not equal to b. So this is also tonight here. Then we XOR operator right here. So it'll return true if any old two operands are the expressions return true. This means that if the value of e there as true and the value of B here is false. So one of them is true. So resulting value here is two. Then we have the not operator. This is a unitary operators and its eastern the true, its return, the true value. If the operand is returning the fog, let's suppose the hell, the value here is false. So that will return me the value here, which is two right here. And if the value here is true, so that will return the false value right here helps you understand simple logical, logical operators. Now just see the coding example of that. Here you will see that I just write this. And x is my variable here is equal to Harris write value is true. Then I just write and sign. And here it is, right? And this is a pause statement. Either this is true or false. Let us see whether the n operator series trade variable down and heritage, right? And x. Okay? Here you will see. So I just use the add operator right here. So when I just check this history into the browser right here, so you can see here this is a Boolean value which is called just because of FastCV hell, the true value, then we have a default value. So if we, if we have both values are true right here, so that will give us the answer as the true right here. You can see here. So when I just run this, so you can see here this value here is true right here. So this is the n operator in logical operators. Now here you will see that V hell variable y and y, which is equal to Harris write statement. And after this, for this statement, I help write that. This is the logical, sorry, this is the logical operators, sorry for that. Here. And then here I just write the value is true right here. Okay? Then here, this is variable underscore, dump right here, and Harris, right? This variable y here. This is the logical OR operator when I just run this into the browser. So you can see here this is a Boolean true value because I just tell you about that, that one of these value here is true. So that will give you the answer. Is that true right here. Similar case like XOR. Now here you can see that I strike variable Z. And here you can see here this is variable zed and variable z, which is equal to Harris. Write that. Let suppose the hell. Not. Okay? Here I just write variable underscore, dump here. And here it is, right? That, okay. And this is here. You can see that semicolon. Now just run this course. You can see here this kind of work through into the falls right here in the output. Hopefully you understand all that how logical operators work in a PHP programming language. If you find any of the problems we got into this lectures, please let me know and thanks for watching this lecture.
18. Operator in php (String Operators): Hey guys, welcome to this lecture. And in this lecture we are going to talk about these strings operator in PHP programming language. The strings operators are used to perform the operations on the string. These are, or there are only two strings. Operators, which is generally PSP built-in functions are used to perform the various operations on the string. The first one is a concatenation. The concatenation is when you are just writing. Let's suppose our door sign and in last lectures, VR are used for the single membrane. So this is used to getting it means we have to use this BR string and another string together. Then we have the coordination assignments operator, video, died, door signature and is equal to sine. This is used to append one is trained to the n and let us see how we use it. Here you can see that I just write a is equal to Harris, write PHP. Okay? Then here we have the variable B and B, which is equal to here it is, right? That programming, PHP programming here, okay? You can see we have two variables here with the plus one is a PHP right here and here I have the right, or I have to declare the PHP tag. And after this, I have no closer. Here you can see that I described a statement here, this variable, and I just joined this variable e with a variable being aid here. Okay? Now here you can see that the output for that google Chrome. Here you can see that we're just PHP programming, which is joints together with the help of this dark can condition sine right here. Now here you can see the assay that I described equal then has a door which is equal to dollar sign right here. And after that I helped write dollar sign. And here you will see has Diablo Giant is, and then there is no using this semicolon right here. So when I just run this, so sorry for that. Here you will see, will join this together. And here we have dollar sign. I will run this course here and here you can see that the PHP programming and the PSP pull them. So you can also use the chemical the nation assignments as. Hopefully you understand now that how we can use strings operator in PHP programming language. If you find any of the problem regarding with this lecture, please let me know. And tax watching this lecture.
19. PHP Get Method: Hey guys, welcome to this lecture. In this lecture we are going to talk about the getMethod in PHP. In PHP, the get variable is used to collect the value of or value from the HTML problems using the GET method. The information that is sent from the HTML forms that the get method is displayed in the browser address bar. Here you can see that how we use this get mattered in the HTML files. Here, I just create a form or the form. Then here I am described action. And let suppose the exons here is I just write their registered or PHP right here. Okay? And here it is used, the matter. Ok, here you can see that here I just create one another file with the name of and it just turned our PHP. Okay, now here you will see there firstly, I have to provide full name. And the full name which is equal to here, I just write that this will be the user input, which is a type of text right here. Okay, then here I will provide the name, which is equal to name. Then here I will provide the email as well. So email here is let suppose I will provide the input. Type here is texts. And then here we will provide the name which is equal to and right here. Okay? Now here I provide the input visa typo submitted proton. So these all are the HTML tags, but I am just using right here. Here you will see when I just go to this register dot PHP page. So here I will write plus, I will write that. Welcome to. Then here I just cried PHP, which is equal. And then here I will use the variable here so that we'll get firstly the name right here. So the name here is what I am just adding the name right here into this matter. You can see here this is the name of that tag right here, but I'm just including here. Okay. This is a first BHP Wordpad tag. What I am writing here, then I just use naught, sine, and Harris. Write your email is, your email is here, I just write that. Php and PHP here is equal. That will also use the get method right here and here inside this getMethod, I just used. The email right here. Okay, and then here I just closed the score right here. So what does the emitted here? So even here is from this getMethod helps you understand now. Now here, my cold for the get method is completed here. Okay? Now here I just go to the browser and run this. So we have an error in line number nine, which is, you can say that this is not on then your email is yes, landa, but nine, we have an error. But as you can see, there is no error just because I am running the backend file right here. You can see, and here I just go to the, this method right here. It is VSP get matter. And I just started this in the browser. So you can see here firstName is hello. And then here I just write hello at the red gmail.com. Okay, as you can see, when I just submitted this, you will find that here. This is welcome to, okay. Here you will find that Welcome to our name here, which is hello. Then here you can see that this is simply a naught sine. And then here you can see there do your email is, and here it will print me that your email is. And then that will get the method of email as an urgency to the core. Here you can see that possibly that will get hello to with the help of this get method, that will get our name from our firstName, fullname from this file. And then opera that here that we'll get this NORC sign. And then after that your email is. And with the help of this get dot eval method that will get our email from these farms as well. This is how we use getMethod into our PHP code. So the variable names are, the value will be visible in the URL of the HTML forms submitted by the getMethod. The getMethod is restricted to send up to 2048 characters, like 2048 characters only. Menu submit the centered or information like password, then you should use this method. The get method cannot be used to send the binary data like images and words or documents, okay? Getmethod can be accessed using PHP Curie underscores drink environment. Ok, so this is also a variable. So PHP getMethod, associated area is used to access all the sand informations by the get method as well. This is how I just tell you about that, that went to use the get method helps you understand. One. Another thing is getMethod. The data is sent by cell as the URL parameters that are used with the strings of the names and the values peer separated by the and operator. Okay? Hopefully you understand now that how we use when to use and what is the use of the GED matter right here. You can also write this kind of thing or this kind of matter. Like here. I just used two separated files right here. But you can also use these in the one file as well. This is up to you how you user simple, you have write simply this PHP, PHP right here. And then you have to use if statement and then get the name as well. So I was not moved to that because this is very simple and understandable to you. There in the real life example, you have to use your PHP and HTML code like this. So that's why this is a good practice for you. Hopefully you understand now, if you find any the problem regarding to this lecture, please let me know and thanks for watching this lecture.
20. PHP Post Method: Hey guys, welcome to this lecture. In this lecture we are talking about the post mattered in PHP programming language. How do you use it and when to use it? The post method does not have any restrictions on the duty-cycle to sound just like a get method. The post method can be used to send us SLS binary data hazard. But many see the get method. So in the get method, you have sent only the 2048 characters only. Ok. Here you can see that the data can be sent by the post method does through that HTTP headers on me. So security depends on SCTP protocol. And by using the secure HTTP, you can use, you can make sure that your information is secure. Php Post Essence you do add it is used to access all the information by the post method. Variables are not visible in URL, so users can bookmark your page as the getMethod. Sorry, the getter method is a global variable. Okay? And last lecture we used the get method, but data can send in the post method is not visible in the URL, just like a get method. Preferable for sending the center view data, knew how to use post method. And there is no limitations of the sending data by the post method as well. And let's just see how user-led here. I just use get. So in the pace of GAD, You have to use the post. Okay, boast is also a matter just like get. And here you can see that I just created a new file registers. Okay? And here I will get this from here, and here I will paste it. And this is registers dot PHP, PHP here. And just simply change this post method. Okay? And then here I am chain that adds, okay, you can see here my court is completed right here. Now here, I've sorted it into the browser. And you will find that here. Let suppose high hired the gmail.com. So here you can see that that will send all the request here. There is no address of that element, okay? And plus here, okay, is I just go back and here in the post method. And here is right. Just book PHP. This is a post method right here. And refresh high energy Miller. And now you can see that the email is email link. The URL link is same right here, okay? And here you can see there, Hello, welcome to high. And your email is high. Gmail.com. This is how we use the post method into PHP programming language. Helps you understand now that how we use post mattered in the PSP. If you find any of the problems we got into this lecture, please let me know and thanks for watching this lecture.
21. Create Form In PHP: Hey guys, welcome to this lecture. In this lecture we are going to talking about the contact form in PHP, that how we are creating the context form with the help of PHP right here. For that purpose, I'm just taking the GET and the post method, what we studied in our last lectures. Here you can see there seems a case like our host matter here I am excluding the action. And action will get this contact backup file. So here you can see that I just get this contact backup file right here. And after that I am just using the matter which is the post matter. Okay, helps you understand now, after that here you can see that I'm distributing the contact form. So firstly, how create the label liberal here is just text which is not changeable. Label here and is used for which is the input name. Okay? And here I just close this. Here. I just write Nim pasty. I will write the name here. Okay. Or here I described this full name. Okay? Then you have seen that here. I just used SUB and then this is terrible. This is sub-question. Subscription says text, which means that this is static. It means that this is the mandatory pier right here. You cannot leave blank this field. Now here I just take the user input and user input. Here is the tie, which is text. And then here I just write name, which is name. And here it is buoyant the ID. So ID of this here is, I will correct that this is the input name. You can see here our this label for name is completed right here. I just copy this, paste it again for the email as well. And this is the full name. Okay, so the email is also a solution desk right here, text right here. And this is the input type email right here, okay, and this is the input type email here. Then here I just copy and paste this email tag right here, and then closest tag here. And this is also a email. There are two fields that I am disputing here. Then after that I will create subject or that subject here is, you may say that this is the import pi subject. And this adults when prototypes object and this is the male and female here, I just used subject here. Okay? So here three texts, beans are completed. Now I just create some of the textboxes as well. How we can create it. Unless you see this is the input type message. And here this is the message. Okay, here you can see that we're creating for the input type I'm just creating here, which is the text area. Text area is when you are just to creating the large amount of texts or when you are just creating this kind of textbooks. So a dashed case, you are using the text area. The text area name here is message, and then here the id which is equal to IS right, that this is in court message I get, I just said the rows to it, which is equal to there. Suppose k, sorry, six. And then here, columns, which is equilibrium sublinear columns here are 35. And I just closed the score right here. And for this closest chord right here, Okay? Now, our core for the message is also computed right here. Now here I will take the user input is the type of submit. And this is a type of submatrix here. And then here after that I will provide the value. Value here is submit. And I just close the score right here. Now here I will provide the input, which is a type of the reset button. I will tell you about this reset button in next when we are just running this code. So I'll just write this research right here. And I just close a score right here. So you can see here are forms is computed right here. I'm going to just go to the browser, check this font. So that form is shown me go port like this. Ok. Here you can see there I heard that paragraph p right here. And when I run this chord, so that when setting in locations right here. And same is the case like that. Instead of paragraph B, you have to write a single line break as well. Ok. Here you can see the form is now look like that. Here when they just had some of the images and messages as then with the help of this reset button, when I just click on Reset, all humans are clear here. This is the use of research. Remember that? Now here I will go to the contact backup file or contact back-up page. And here I just create some of the backup information, back end informations, ok. Where I just said, the post matters as men. Here you can see that firstly, I have grinder and this is the H1 tag and here it's right. Thank you for submitting contact form. Here. That will be the output of curve running or after submitting the palm. Here, I just write a paragraph tag. And here is ride. Your mission is listed. And I will list all of the information to the user. So this is the orderly straight here. Always had poured the order list. And then here I just write a tag. And inside this alert hag, here I will use. And inside this LI tag, I will use firstly, I'm just write EM tag for the input size, the text plus 10x. I will emphasize the full name right here. Then after that, LIM, I will write the PHP code. So here I'll write PHP. We are equal and equal. Here is I will use cost method. And the post method here is firstly, I will get the name of the id. So this is the ID name right here, which is in contact form. So you can see here that the name right here, hopefully you understand that these are some of the names we're demonstrating right here, okay? And then after that I will close this code right here. Mid PHP helps you understand now, now I just copy this all cord and here, paste, paste and paste 44 entries right here, ok. Here you can see that then I will write email, then get the email as well. And then here I will get the message. And this is for the message here, then here, sorry, this is for the subject plus t. I will write this for the subject. Then what is the name of the subject has subject right here. And then here we will write then prototype message here. So this is the input type message. So I will write this is for the message right here. So our Contact Us form is completed ICT here that we'll get the post matters as well. Refresh this. Hi. Hi andar gmail.com. Hi. I am submitting contact form. Okay. So this is contact form. Hello. Message box. Okay. Menu or just researching this. So all foods I'll clear when you are just submit. So here you will find the error in line number 12, which is the error right here. So which is email, and then PHP, and this is the email as well. Okay, now I just run this score. So you can see here now, thanks for submitting the contact form, which is the H1 heading right here. Then here the paragraph there do your information is listed. So this is paragraph tag right here. After this, you can see here firstly, we have the post name, email, subject and message, and we will get all of these things from our farms. So fastly be how forelimb, then email, then subject, and then message box right here. So all of the detail is listed here with the help of this form. And this is just for LA tags or hair isis to use OL tag per URL, which is the ordered list and then EOL tag. And these are in precise text, which is four EM tag for EM tag, which is using for the emphasising that tax rate here. Hopefully you understand now that how we create the conductors formed with the help of post method. If you find any of the problem the garden with this lecture, please let me know and thanks for watching this lecture.
22. Global and local Variable: Hey guys, welcome to this lecture. In this lecture we are going to talk in both the global and the local variables in the PHP programming language. As we discussed earlier, a variable is a name which is given to a memory location and it must be declared before it is used. In PHP, all variables are declared at the starting of the program. As you can see. Or in PHP variables can be declared at any point of the anytime before they are used in the instructions. Variables are classified in to the local and the global variable, which is a main topic of our lecture. Here, the main difference between the local and the global variables are that local variable is declared inside the function. Instead of local function. The local variable, the global variable is declared outside the functions in the programming body. Here. You will see the example of the local and the global variable. Here you can see that I just created PHP and as close as PHP tag right here. Here, I just create a function that the function, what is the function right here? We will discuss function in our function is a separate topic and I will create a separate lecture on that. So just forget about the function. Keep eyes on the variable only. Here you can see that I just created a function, ABC. And here I just write this is, let us suppose we have the function which is timestamp. Okay, now here I will write that. Let suppose this is the variable right here. And variable here is, I'll just write that this is temporary variable or harris, right? This is a temporary, okay? Now, which is equal to here it is, right? Date. Okay? Now I just got the date function right here. So this is just a program here, okay, for the local and the global variable. Here, I just write 1F and then GS here, then ear right here. Okay, here. After that, I have to concatenate this function here, which is, sorry, this parameter here, which is the timestamp. So here, don't worry about this pedometers and the function. So this is the function name. So this is a function as a keyword is a function name. This is a pedometer. Ok, we will discuss about these in next upcoming lectures, and we are just starting the sections on the function. Here, I will return the value of the date is inheritance right there. And this is our variable name here, which is ten, ok. And closest chord with the semicolon. Here, you can see that I just declare a local variable, which is temp. Okay? Hopefully you understand now that this is our local variable, a variable what you declare inside your function's body. Like this. This is card, a local variable. Local variables and the variables that are created within and can only be accessed by the functions. They are generally are temporary variables that are used to store the partially proceed reserve period to the functions return. Once had of local variables is the list of arguments to functions. In our, let suppose what we studied about the variable section, ok. Here. You can see that after this, here I will go to the global variable right here. And I will tell you that what are the global variables in the PHP programming language. Here? I just write this PHP tag right here. And their hair eyes red PHP. And then clauses PHP tag right here. Ok. Here you can see that offer this. I just create a function. Let us suppose a function here is name, the name which is equal to here it is right name here is x, y, then any name, you can write any name right here, okay? So here I just simply define a variable here. Now, seem as a kid's lego, our board function, what I just already declared here, this is the function. And function is let suppose x Windsor, okay, here you can see that. Now after that here, I just tried global as a keyword. Okay? And after this global Here, I will access the name variable right here. Okay? So this global keyword, we'll make a variable global inside a function right here. So you can access this variable any we're inside the function and outside the function's body. Hopefully you understand now. Now here, I will return the namenode here. Okay. Hopes we understand now. Now here you can see, hopefully you understand that how this court is working right here, which is a global variable and the local variable. And you know, the use of that hasLetter helps you understand now, if you find any of the problem regarding with this lecture, please let me know and thanks for watching this lecture.
23. If Statement: Hey guys, welcome to this lecture. In this lecture we are going to talk about the conditional statement in PHP. And inside this conditional statement, we will just tell you about the if statement. A conditional statement is incense, which helps programs which decide which route to take based on how condition is conditional statements are. I will look at it as either being true or false. Let suppose here in this lecture we will learn about the if statement. Let suppose this is our syntax here. Here, I just said some of the conditions here. If the condition is true, so that will accept this part. And if condition is false, so that will access this part. This is just our logic and the diagrams of the conditional statement right here means that the if condition is true. So that will choose some kind of protocol and if condition is false, so that will check the conditions again. And then if condition is made so otherwise true or otherwise go to the else condition and then give us the result false. Now here, what is an if statement? And if a statement is a programming conditional statements that provides true, performs other functions or display the information below or general examples of an if statement is not specified any particular programming language. This means that if you're conditions through, your program will be done. Otherwise if condition is false, so you haven't got any reason, right? Let's just see how here in this example you will see that I just write let suppose v, how some kind of variable, let's suppose at time, which is equal to I just get did and inside the date, I'm just getting, let suppose this is D right here. Okay? Here you can see that if, if means that if this time is made, which is less than this data right here, 20, sorry. And here we write 20. And before that, I am just writing PHP code right here. So here you can see that I just read plenty who simply execute that. And here is that this is Sunny Day right here, okay. Helps you understand. And then I just closed the score right here. To writing if statement. You have right. If as the keyword right here, then you have right parentheses. And inside this parenthesis you have write your conditions right here. Observes Hannah. Now here you will see that. Then our chord here, taking inside the browser right here. And we have an error in line number ten right here, where you can see that this is closed with a semicolon right here. Okay? Now I just run the score. So you can see here by this condition is doesn't meet here. So that's why it is not giving me any of the result right here. Okay. Here I just write this is 19. Then we will run this court for no result here. I just write 25. Okay? Now I just turn this to the hours. And here I will write 20 again underscore. So you can see here, this is the sunny day. Why it is. You can see here the PHP if statements execute a certain chord, if the condition is specified, the next word are true. The aisle, right? In this example you can see here, which is, you can see that which is below the displayed text. Okay? Which is, this is a sunny day right here. If the local time, which is 20 plus V, I will get D right here and right here, you just D. Now, I just get our right here. So you can see here my hours here is less than 20. You can see here. So that's why this show me the output as this is the sanitary. Hopes he runs 1000 Hall. This PHP statements work. Now after that, you can see here, I'm just creating one another's treatment like here. Let suppose I have the variable name, like ABC. This a variable name which is ABC right here. Okay, and ABC which is equal to, let's suppose I'm illustrating there. Good day. Ok, here you can see that I just close a score right here. After this. Here you can see that I'm just providing the if statements. If a statement here is conditioned that if my variable ABC, which is equal equal to here, I just write that this is good day. So here, execute the equal that your day is awesome. Ok, here you can see them. Then here I will write single-end break tag here. And single-end hang here. And offer less as closest pack. And heritage, right? Equal and Harris ride. Hi, this is good. Okay. Now here you can see that I just ran this course. So you can see that this is sunny day. And the idea here is awesome. Just because of hair, you can see that my, this condition and this condition is meet right here, means that my variable and the if conditions, which is ABCD is equal, equal to get the equivalency psi n, which is equal to God. Somebody plan. Your day here is awesome. And you can see here that you are, here is awesome. And at last you can see here that will print this statement that high is a good day. You understand now here that how our if statements is work in a PHP. If you find any of the problem garden this lecture, please let me know and thanks for watching this lecture.
24. Else Statement: Hey guys, welcome to this lecture. In the last lecture, you have seen that we studied about the if statement in PHP. And you will know that how the flow of the program in the if statement is work. Like if the condition is true, we will execute the reserve or if condition is false, so there will be no result at that state. Now here, let suppose V has some kind of statements right here. And if condition is match right here, so that will give us a result right here is, is true. And if the condition is not met, so that will go to the falls result right here. Okay? And that we'll move to the else conditions right here. And that will show us the reserve. Hopefully you understand now, notice just turn to the example of the if and else statement in PHP. And you will see that how this if else statement work. Ok. Here you can see that that I just write this PHP code fastly. Now here, with the help of if as a keyword, I just cleared this treadmill right here. Before that, I just create one or variable rate here, which is equal to gender and gender which is equal to let suppose agenda here is made up. So you understand now, now here I just write if a student, so if condition here is, you can see that if gender, which is equal, equal to female, so simply gives us the result right here is equal and that is female right here. Okay? And if gender not equal to the female, so that will go to the else statement. And here inside this else statement, it will go to the equal. And here I will write that, sorry for that. And here I will write that this is right here. Okay? And this is female right here. And now here you can see that this element right here. So as you can see that how this coursework, firstly, that will check this variable is gender m, which means that if the gender is male, so dactyl execute the result right here. If means that if the gender here is mail to that will execute this result. If this gender is not measure right here, which is m. So that will go to the else condition right here, which is equal and mail right here. Now here you will see the output of that. And here we are getting the result here. So land number 12, right, that if gender is equal, equal to and here, OK. And now I need him. This was, so this is else. This statement. Ok, here you can see there. Now I just run this core. Yes, okay, as a statement. And again, so you can see here, my Discord is going to the L statement right here, which is just because of here you can see that I just write gender which is equal, equal to male. And I just write if statement. So if statement here is false. So if this statement is false, so that will go to the next statement, which is the else statement right here, and execute the body of the code right here. Now here you will see the gender is female. So what will be the output? I just refreshed. So you can see here, this is the female right here just because of this if statement is meet right here, helps you understand now that our if statement is made, so that will execute the body and if a statement is not meet that, that will go to the next condition. And she was what another example when I am just showing to you, which is if and if here is age is greater than, i, just like Wendy. And I choose a sign here. And n here, I just write if variable is less than 30. So execute here, which is, let's suppose I decide show necessarily equal. And here it is, right, that area right here. Okay? And here I just go to the else condition. So else here is, I just show that if these are the not match, here is red teen age. But underscore. And you're adding in line number 22 where you can see that if it is greater than 20, and then here I just write n psi and n ages less than 30 right here. So you can see here that this is equal and yes, ok, this is also equal right here. I will show you some of this program is different fader right here. So you can see that I just remove this. And here remove this as work. Here. I just write that this is the age right here. And ages is equal to Harris, right? That this is 19. This is here I am writing equal. And then I just closest PHP code right here. Okay? Now here you can see, and this is a semicolon here. Now I'm just run the score right now. So you can see here that will show us the result here, which is teenager. This is just because of here you can see that the logic right now. Now our age is 19 right here. Okay? And our condition here is, if it is, sorry, H is less than 20. So execute, sorry, h is greater than 20. So execute the result here, which is either, so our age is 19. So you can see here, I just write here teenager inside this else condition, so diagonally dominate this conditions right here. And that will, this program is go to the else conditions and show us the result right here, which is the teenager right here. Helps you understand now that hall, this if and else conditions work right here. If you find any of the problem regarding with this lecture, please let me know and thanks for watching this lecture.
25. If Else if Statement: Hey guys, welcome to this lecture. And in this lecture we are going to talk about the else if statements in our PHP programming language. As if, as it is, name suggests it is a combination of if, N, L, This table, like as it extends, and if statements to execute a different statement in case the original expressions I will do calls. However, unlike ills, it will execute the alternator expressions only if the else condition or expressions I will refer to true. Let us suppose here you can see that we have the if statement. And if this statement is not meet, that will go to the one another if statement. And if this is also an automated, then that will go to the else condition right here. Or if you have one of them. So you can write if epsilon. Let suppose our last example I just tried, ages 20. Here you can write age is 40 and hedges, Right? Aged 60. If 204060 is not meet here, there, that will go to the else conditions right here. Let us see an, a core programming that how this statement here, I just ride if statement. So firstly I have write PHP, then choral closest PSP coordinate here, now Harrods, right? If a statement, if here I just cleared is equal to Harris, right? 20. Firstly, this is 28. Now here at Harris, right? If it is less than 20, simply you have to write that equal. And equal here is that you are a teenager. Okay? Now here, this is our plus type of statement right here. Now, if this statement is not meet, then that will go to the else if condition. Ok. and here that we'll write, the statement matches the statement here that is greater than 20, OR Harris write ages less than 40. Here, I just write that there is equal and equal here is this is younger. Okay? And add the last that we'll go to the else condition right here and here that will show me the result right here. Okay, let's just see this cord into the browser. So we have an error in line number 21 where we are writing Lanham were 21 years. Okay, I just miss a semicolon right here. Now refresh. You can see here, my age here is younger. This is just because of here I just write 28. And here this first statement tells us that if age is less than 20 means is starting from 19 to 0. So this is the wrong statement right here. Then this program is checking what other conditions right here. Then if it is less than and greater than 20. So my age here is 20 right here. So that will show us the result here, which is yang. Okay? Okay, you can see there I just write ages 58 here. So that will show me the result heritages or Sadat will terminate this statement, this statement that will run this segment as hopefully you understand that how these statements work in a PHP programming language. If you find any of the problem regarding to the if, else if statement in a PHP, please let me know and thanks for watching this lecture.
26. Switch Statement: Hey guys, welcome to this lecture. And in this lecture we are going to talking about the sweetest statement in a PHP programming language. A switch statement is used to perform different actions based on the different conditions. Using switch statement, we can specify multiple conditions along with the code to be executed when the condition is true. Legacy, how we do it? Here, I just write PHP and I just close as PHP tags here. Now here let suppose I'm illustrating number, a number which is equal to Harris, right to, okay, here. I just used to it. So switch here is my keyword to implementing the sweetest headman right here. Now here inside this switch is number. And here I just write the cases here. When you are just declaring the sweetest hate me right here. So you have to add the, the dead advert to implementing the kid's case is a keyword. Then here S is defined, this is the case number one. And here you can add this with a colon right here. And just like our if statement, so you have to write this case as well. So here you can see that I just write equal and here it is right that the number is, sorry, here I write the number is one right here. Okay. If case number one is made, so if this kid cases mid, so all of the other cases right here, we would terminate. Which means that if this case is run right here, and if this case is meet with this statement right here, so next, if you are next 100 cases, so every 100 cases will be terminated if we see the example of the else-if right here. So that will execute firstly, if a statement than a segment, if this treatment is meat. So that will also go to the next assignment and check the next treatment as well. And then flow is come back to the else statement. And then that will run this program. But in switch statement, the scenes are different right here. Because if you are cases meet right here, simply you have to reuse breaker statement to break your program, then that will terminate all of the other cases out here. And that will simply execute this case last time, which is used here. Now, this is case number two right here. And the case number two here is equal. And here is the number here is two. Okay? And I just closed the score. And here I just use break as a keyword to break my program right here. Now, after that you can see here, I just clear two cases right here. And if this both cases are not meet right here. So that will simply go to the default and that will go to the default statement. And after this default statement here, just write equal and here inside this number is unknown. And I just closes coordinate here. You can see here, okay, this default statement work as the L statement right here if any of the cases are not muted. So that will simply Google default case, and that will run the default case right here. Now I just run this code here. So you can see here now that how this program flow is working right now. So you can see here that the number here is two. This is just because of that meet with the number two right here you can see hope so you understand now that hall, this break statements work in a PHP programming language. Let assembly that will check this condition. And if this condition is met right here, that will break the program right here, run this program and terminate all of these conditions right here. Hopefully you understand now that if you find any of the problem regarding this lecture, please let me know. And thanks for watching this lecture.
27. For Loop: Hey guys, welcome to this lecture. In this lecture we are going to talk about the for loop in PHP. There are the different types of glue which is available in the PHP programming language, which our for loop, for each loop nested for loop, while loop. And the do-while loops are used to execute the same block of code again and again, as long as the certain condition is met. The basic idea behind the loop is to arpa made the deputy to toss within a programs to save the time and the effort. Let suppose here v, how some of these statement, like if a is less than two. Ok? And if you want to execute this statement ten number of times, at a low level stage, we have, right? This is statements 20 numbers of ten. But with the help of loops, you have to write simply, you have to use do-while loop, while loop for loop for each loop to simply execute this statements ten number of times. So that will execute ten number of time right? Now here, focused on the for loop only. For loop, it's true block of code until the counter reached a specific number. Or the for loop statement is the most complex loops statement in PHP. Often use. The PHP for loop is statements when the number of executions is predetermined, even through the BHP for lupus statements, right? More functional than that. How you can see that if I just defined for loops, so for here is a keyword, okay? So if FOR loop is running the conditions of some kind of conditions right here, if this certain condition is met, so that loop will be terminated. Otherwise, that will learn. Okay, here, I will tell you more about the for loop, which is therefore loop can be used to try award is the set of code for the specific number of times. Ok, let's suppose you heard I tend to that loop will be executed ten levels of them. Okay? Or it should be used if the number of iteration is known. Otherwise, that will use, otherwise, you will use the for loop. So we will talk about the while loop in next upcoming lectures here. Just focused on the formal break here. So what is the for loop and how we declared it? Simple. Firstly, I have write PHP core. Then closest score right here. Now here I just write 44 is a keyword right here. Now here I just tried for E, which is equal to one. Here you can see that this is the identity of the variable here, and this is a variable and the value here is one. Okay? Now here you have the right semicolon. Then here I just write e, which is less than or equal to five. And then after that I heard that, that here I just write a plus plus, which just means that this is increment right here. We already studied about that. Now here, make your concept. This is I just write number one. Here. I just write this as number two. And here I just write that this is number three. So here, as you can see that these are the three expressions, but I am just using right here. First, I am just taking number one right here, which is dollar sign and E, and E, which is equal to one. This means that you had initialize your value right here. Okay? Then here you can see there I just go to the number COOH, right here. Here I just write number two is less than or equal to five, means that this a is less than or equal to five. So here we said that this is the condition of this for loop on number third, here I just write a which is plus plus. So here you can write plus, plus or minus minus. This is up to you. So this means that this is increment and decrement operator right here. So as you can see here, these are the three expressions right here. We're, this is the initialization expressions, this is the condition expressions, and this is an increment or decrement of expressions right here. So here as you can see that first one, the increment, sorry, first one, the initialization expressions always be evaluated once. Then the loops is TEDMED, is first reach. You typically used initializations to initialize a loop counter variable. You can see here where you can write 1234. This is up to you that you had seen that this is the condition expressions which is at the beginning of each iteration. This condition expression is used to control whether the loop continues or not. If the conditional expression is true, the loop will continue his reserve. If it is false, the loop is terminated at the folded state. For example, you can use the conditional expression, the past loop counter as well. We will, we will test the loop counter here in this lecture as well. Then we held increment or decrement operator, which is a plus plus signs and minus minus sign. This expressions is emulated at the end of the iteration. It is often used to change the loop counter variable. Let suppose, you can see here we have the value of conditionals phi. This means that that loop is starting from one. So here at fossil stage, that will starting from 0, this means that one plus 0 is equal to one. Then here it will go to the Secondary traditions. Here it will write one plus one, which is equal to two. Then here write two plus one, which is equal to three. Then here it will write three plus one equal to four. And when it's lead to the five. So here it will write four plus one, which is equal to five. Okay? So this increment and decrement operators work like that. If you use decrement operators, so instead of plus, you have the minus sign. And this stage helps you understand now. Now here you will see that I just write here. And here. You have to write equal. And the equal here is I just write the numbers are, and here I will write dot and I stride dollar sign, sorry, this is the dollar sign and Harris write a, and then I just write down here, I just did a Canada, the nation. So I just tell you that door and then you can attach some of it. So this means that this is the concatenation right here. And then you have write a beer tag right here, which is for a single embryo. Now, I will tell you that how these programs work. Firstly, deck will go to the is tarred conditions right here. Okay, which is starting from the one right here. Then this expression is evolutionary here. We're going to check this expression, which is the initial expressions right here. Okay? Then after that, this loop will go to check the conditions right here, which is E is less than or equal to one over T, Okay? If this is false. So loop will stop his work right here. Okay? If this is true, then that will go to the body of the loop. And then that will set the increment operator right here, okay, here that will go with the body of the loop and then offer that, that will go to the increment or decrement operators. So that will go into decrement operator. Helps you understand now that how this loops work. So everyone loops work like that. Here. I just run this code. And you can see here inside the browser. So you can see here, I just execute one statement to the multiple number of times right here. Hopefully you understand that how a for loop and how we work with it, and what are the for loops and how this works. So I will tell you that, that is starting from one end, that will go up to five to here you can see that firstly, that relate 0 plus one which is equal to one, then one plus one, which is equal to, then two plus one which is equal to three. Then three plus one which is equal to four, and then four plus one which is equal to five right here. Seem in a case like that helps you understand now, if you find any of the problem regarding with this lecture, please let me know and thanks for watching this lecture.
28. For Each Loop: Hey guys, welcome to this lecture. In this lecture we are going to talking about for each loop in PHP programming language. For each construct, provide the easiest way to I trade the array elements. It work on eddy n objects. Both the for-each loops through iTunes when an adding elements and the execution is simplified as finished, the loop in less time. Competitively is located the temporary memory for the index i patients which take the oral systems of a radian. It's performs in the terms of memory allocations. Click for each loop is mainly used for looping through the value of an array. Remember there, and it's look or the adding only and each value of the current element is assigned the value. And the added Pinter is enlarged by one to go the next element in the editor, this is just a for each loop definition, let us come to the example of that and we will see that how this foreach loop work in a PHP programming language. For each, for each here is a keyword here to writing your for each loop. Then here you have to define your head. You can see that I just write this is Eddie and added which is equal to here, you just write it as a keyword. So I just defined the area of somehow you can say that these are the area of let suppose PHP. Then we have the array indexed here is and they're supposed to be held at. And x here is PHP. Then here I just write Java. Then here you can see that I just write, this is the array index, which is MySQL as well. Okay, so I'm just creating three index right here, which is, you can see here 012, right here. Okay? Now here you can see there as defined for each loop. So inside foreach loop, you have to access fastly, which is you're adding him. Ok, then our decline this acronym as somehow you are creating variable or anything. Ok? If you want to create VR variable, VR1, we are cool. So this is up to you. You can write any of the name right here. Okay? Now here you can see that after that, I just go to the statement. And inside the sequel statement, I just want to print this variable right here. Okay? And then here after that, if you want to give the single line breaks with symbols, you have read this BR tag here. Okay? Now this is very simple that you are working with a for each loop right here, for each keyword right here, and then add a, and then simply print this statement right here. Now here, you will see that in the browser, I just run this for each group. So here you can see that Java and SQL as well helps you understand. Now, here, you can see that the for each loop in PHP is used to access the key value paired for an adding only. This loops only work with Eddie. And you do not have to initialize any loop counter or any conditions for the existing From a loop. Everything is done internally by the loop only. You can see here. I just declared the array. And then with the help of for each loop, I will get all of the locations are the addresses right here. Hopefully you understand that how we work with this PHP for each loop. If you find any of the problem regarding the lecture, please let me know and thanks for watching this lecture.
29. Nested For Loop: Hey guys, welcome to this lecture. In this lecture we are going to talking about the nested for loop in PHP programming language. The nested loops means that a loop inside another loop. Which means that if he hell for loop. So inside this for loop, vehicle one another for loop. That will check what are the other conditions right here. Pop singers Tana. Now we will see that how this nested for loop work in a PHP programming language. Here you can see that let's suppose V hell variable here. Sorry, here I just write PHP and then as close as PHP tag right here. Now what is the nested for loop right here. Here. Firstly, I will run a very simple example on that for loop and then nested for loop, and then we will move to another one. Here you can see that v hell I and II, which is equal to Harris, right? 0. Okay? Then Harrah's right, i, which is less than or equal to, let's suppose 23 or four or five. Okay? And here he's right. Here. You can see that I create one for loop right here, which is our, you may say that this is our outer loop as Now here, we will go to nested about this for loop. So here is right, 44, here is, here's my daughters and I, and j. And jj is equal to Harris, right? 0. Then here it is right, j which is less than or equal to Harris, write five. And then j plus, plus right here as write j plus plus right here, okay? Here. And say that I will write equal. And the cohere is firstly that will print hi, and then that will pin the j here. Okay? Here you can see. Now the program logic here is firstly, that will run the outer loop. After checking the condition of this outer loop that will go to the inner loop light here, and that will execute the result of that inner loop right here, ok. Here you can see that I run this code right here. So we have an editor in line number 11 where you can see here that for loop and for which is okay, yeah, heritage right column. Okay. Now go back to the browser and on it again right here. Okay, here you can see that so or chord here is working right now, but I just go back to the code right here and check the condition again. Okay. So it's not assuming that just because of her, I just not close this code right here. Now is go back to the browser and refresh it right now, okay. Here you can see that I just going to add some of the statements right here and inside this cluster admin I just tried BR tag. Okay, and then close this statement right here. Now here you can see or this is showing me like this one. So I just remove this. And here I will write BR tag. Okay? Now here, let's check. So here you can see that there is a loop inside another loop. Howard's work. Firstly, we have the for loops. We are, we have condition which is less than or equal to five. And then we have another for loop inside this for loop via the condition is also less than or equal to five. And our initial stage conditions here is 00. Firstly, you can see that 0 plus 0, that is 00 plus one, which is one. Okay, then one plus one which is two. So that will run the loop five times. Ok? Each loop will run here, it is, five times, okay? And that will add the conditions five times right here. Then after that here you can see that this is 0, then this condition here is one, then here this is two. And here you can see that this is three, then four, and then add the last five. So you can see her every loops is running five time right now. Now here you will see that I turned to one another example with that. Here you can see that v, how some kind of this for loop. Ok. Here you can see that IS right. This loop is run to time, and this loop is also run two times rate here, okay? Here. What another process you can do, right, Harriet, you can define your integers type. Let suppose v, how the variable i is also an integer type right here. And here you can write this is the variable G as well, okay? You can do like this as well. Okay? This is not you. You say that you can you can also declared these kinds of stuff right here, okay? So I just remove that. And here is removing this. And now here, you can see here instead of this, instead of these loops right here, I'm just creating the correct here that VR, or here is write VR, learning PHP. Ok. And here I started to write a beard hang as well. Now here when I refresh this, here you can see that we have an error right here. We are, we have the statements here are earning PHP, and then we are tagged. So there is not showing the output right here. As you look at, at the core, severely hurting the HTML course. For that case, I just didn't write PHP right here. There was an arrow right here when I rephrase this. So you can see here this core is completely running to me that we are learning PHP, PHP ok, which is 3x three. So you can see are 123456789, which means that that will run through them, that will run through time. And that block of code will also run three-time right here. So this is a nested for loop in PHP programming language. If you finding the problem regarding this lecture, please let me know and thanks for watching this lecture.
30. While Loop: Hey guys, welcome to this lecture and it is clear we are going to talking about the while loop in PHP. Php while loops execute a block of code, multiple numbers of town. This functionality is also available in the other programming languages such as Java and C plus plus as well. They are used to execute a block of code are rapidly until the third condition gets satisfied. When to use the while loop. While loop are used to execute a block of code until a certain conditions become true. You can use a while loop to read records turned from your database, curious as well. The while loop, we're, the while loops is statement will loop through a block of code as long as the specific conditions are not satisfied. Or you may say that let suppose a while loops, we just check the conditions force if this conditions I will refer to true. So the block of code is executed that stage, and that will become the result value as a true if this is false or false. So the execution of the while loop is at this stage. Here you can see that VHA, let suppose a conditions right here. If this condition is true right here. So that will execute the block of code. If the condition is false here. So that will simply jumped out to dynamic conditions and that will terminate all of these conditions right here. Similar case like if condition is true. So that will go to the another condition and Jim check Dell conditions again. And same is the loops like this one. Here you can see that in a coding example, I will create a while loop. So I just write PHP right here. And our for PHP, I have to write let suppose a variable a which is equal to one value here. Okay? After this value here, what I am just creating visits a value number one, which is my variable here. Here I just create while as a keyword. To declaring the while statement, you have to first write. Let suppose this is our variable name, which is a and E here is less than five. Okay? Here. You can upload your code like this. This is just to send text all the while loop here. And here I will write equal and heritage right, that number. And here it is getting number. From here. I will concatenate a here. Okay? You know how we can continue our variable here. And then here I will write a beer tag as well, as close as coal right here. Okay, now here you can see that after this statement here, that will be a one-line break right here. Now here you can see that I just write a plus plus. So I just said the increment operator as well. No hair. You can see that I just run this code right here. And we have an error in line number 16, so yes, ok. And here, we didn't add a semicolon. So when I just run this score right here. So you can see here the number is one, the number is 234. So that will, it started from the ones. So that's why that will show me the four values right here. Same is a case like our for loop example. So we do these kinds of his top with a while loop. As you can see that beside that here, you can see that I just write a while loop which is less than five. Ok? So here you can see that I just said that the number here is, I will get firstly the numbers from this variable. And then here I just can't coordinate these numbers right here, okay, and then we are handled it how we can create our while loop is very simple in a PHP programming language. If you find any problem regarding to this lecture, please let me know and thanks for watching this lecture.
31. Do while Loop: After studying the while loop, we just turn to the do-while loop right here. The do-while loop is literal difference on from the loops in PHP. This is just because of it will execute at least one time. What does that mean? If the conditions here is true or the conditions here is false? So do-while loop will execute once had at hand. Even, I just tell you that if the condition is false as well. Can you guess how? Well, because the condition is checked after the loop executions, hence, the first time when the condition is checked, the loop has already executed once. What is the semantics of this do-while loop here? So firstly, you have write du, and then here after this do's statement, that will go to execute the while statement right here. Okay? Here I just close as PHP tag, and here I just write this PHP tag right here. Ok, here you can see firstly we have the blue and then we have the while loop. And now here I'm describing one of the simple example with a do while loop here. Here I just take my old example a which is equal to one. Here. I just said that do, so do here is isolate, like her eyes right here, which is equal. And Ico here is I just write that this is do-while loop, okay? And I just close this loop right here. Then here I just write equal. And equal here is I just use a BR tag right here. And I'll just close this loop right here. Okay, and here I strike. Let's suppose a0, which is the increment operator H here is plus plus. Now here I just go to the while statement. And inside the while statement here I just write that e and e here is less than ice, right? Five or if you want to write, is less than six or ten, this is up to you. Ok, here you can see that. So this is how we are creating the do-while loop right here. Hopefully you understand now, ok, here you can see that i will run this do-while loop right here. So you can see here that this is do-while loop that will starting from the one and that will go up to five right here, which is 1234 values between these numbers. You can see here. Here you can see, I just write that, that is, let us suppose six. Ok. Here you can see that. And I just run this core, so that will execute one at a time. You can see here, I just tell you that if the condition is false right here, this do-while loop will execute his self one at a time. Okay? Hopefully you understand that how this do-while loops work and what is the actual work of the do while loop in PHP programming language? If you find any the problem regarding this lecture, please let me know and thanks for watching this lecture.
32. PHP Arrays: Eddie is one of the most vital part in every programming languages. It is also important to know what facilities are built-in functionality or built-in function. It is a pole lemming language provides. Php provides a very strong set of efficient ways to deal with Alice did as type, time to time or time to time. I have discovered several usage of PHP adults, which not only Cyril my town, but that is also made my writing efficient or writing efficient code. It'll still often need to reward these functions to memorize. And again, in this lecture we will learn about the alleys and you will see that what types of LUV, how, and how we use them, and what type of Adi, wheel is turning steady in this lecture? So here I just tell you again that edges are the complex variable that allows us to store more than one value or a group of values under a single variable name. Here. A common example that if the hell Lake Country list, and for every country list, you have to write a new variable. So there will be hundreds of Cantonese list. Anyhow, for a 100 of countries list, you will create a 100 variables. Okay? So that will be a more times effort, you will be used there. So here in shorts, I will tell you that at a will come at that stage where you can create only a single variables of country. And you have to create a 100 list of countries inside one variable only. Okay? So what types of ADD is v? How we have different types of ads, where we have indexed edits, associate, numeric Harris, multi-dimensional array and the sorting error. Here in this lecture, we will learn about the index array and I will tell you that how this index let it work. Here you can see that I just created country and country here is added. So I just take the country here is added. I just cleared this country list IS USE. Then here the current delisted UK. Then here we have the country list is Germany, and here we have the country list is let suppose Canada. Now here. Before that, I will tell you about the index. The index i, it is also called a numeric ID. And you could say that these are use of integer as the keys. There values are stored in linear order only hearing density that I just created some of the index right here and here it is, right, this is 12. Okay, here you can see that I just indexing this value 0123 right here. Ok. The actual value that means towards here are four, but that is starting from the 0. So here we have the three and X right here, which is starting from 0 to three. Here you can see that on index numbers u i, this is toward the value number six right here. And then here the value three, then here the value 14, and eyes right on their next number venues. Ok, here you can see that this is just an indexing what I am is creating with this editor right here. Now here you will see that I just indexing Maya this coordinate here. So here on edX number 0 v how the value of usaid and next number one, UK index number to Germany. And number three, we have the value here is Canada. So simply, if we need the value on the index number two, so here we just simply call our values with the help of equal. Then her eyes, right? This will get the country. And after getting the country right here, I just need the values from the index number. Ok, let's just see, you can see that here we have an array and I just run this course, so len number, okay? And Lanham or 2000? Yes. Okay, I just missed this semicolon here. Here you can see or index number two, VHA Germany. Just because of an index number one, you help USE laxness or index number 0, v how the USC. And next number one, we have UK and X number two, v how? Germany right here from the list of array. So we just get here index number two only, and that will show us the result right here. This is how you see that, that ad is how edX is our work right here. Or when another way you have write, let suppose PHP. And then here you can see that I just, I just closes core right here. Now here. When another way you can declare, you are adding like this. So here you can see that you have great, let's suppose countries, okay? And here we have countries which is equal to n. Ok? Firstly, I just set my variable here. A currently is adding. So remember that adding here is a keyword right here. When you are just declaring the adding, you have to write a keyword here, which is starting from the editor here. Okay? And this is a semantics of edX is Asbell hair. You can see that I just firstly get the list of the countries right here. And then after that here I just create or I just want to store some of the value or the index number is 0, which is equal to let suppose we have the index number 0 and I weren't whose toward this values right here, which is let suppose the China. Okay, and after that here you can see that an index number two right here, where our index number one, where I just wanted to restore some of the values right here. Let's suppose that is Australia and offer that here you can see that offer this Australia. Here I just want to restore some of the venue which is Austria, okay, which is on index number two. So this is how one another way you can is Tor, you are indexed wise values into the ad itself. But hopefully you understand now that how we can store the two types of index array in PHP? I think so this matter is quite simple right here. Instead of that, because the time efforts is much involved in this matter right here. But it's up to you. You can write or you can create any of the error rate. Hopefully you understand now that how we can work with the indexed array in PHP. If you find any of the Arab problem, problem regarding to this lecture, like an ad a in a PHP, please let me know and thanks for watching this lecture.
33. PHP Associative Array: Hey guys, welcome to this lecture. And in this lecture we are going to talking about the associative arrays in PHP programming language. Soc. Two associative arrays is different from the index in that instead of integers that is used is transferred the keys, like an associative array, we also use these things as well. But here you can use strings and the keys as well. There is no linear order right here. And a dual core is free to assign a specific key to any value they use. Are these Tor in a PHP adding? They clear again and again, using a PSP, adding new beds. Well, two results are display or shown to reserves on the screens as well. Let us see how we can create the associative arrays in PHP programming language. Here. I strike PHP. Then I just close this PHP tag right here. Inside that here you can see that IS right. Same is the case our old example. So I just take that example as well. Here it is right country and currently which is equal to, okay, here. Eddie, and currently it seems like our old core. But here I'm just using the associative added. First one lead. Let suppose m this right, USA. Usa is a name of the country right here. Here is right, is equal to and greater than said. After that, I'm describing the key date here just because up in associative array that is assigned to the value can be arbitrary and the user-defined strings, like as you can see here on your screen. Here I just write that the country code of USA here is one. Okay, then here you can see that I just write that this is Canada. Or here I decided that is Germany. Ok, here you can see that the current record of Germany here is 49. Simple. Then here I just write UK. And the current record of UK here is equal to and here which is equal to that 448. Ok, hopefully you understand now. And I just closes core right here. Then here you get c that I just ride. And Ico here is, let us suppose M striding country right here, okay? Or if you want to write country inside credentials or with our quotations of symbol is W. So that will plan the structure of the erudite here. Let us see how. So here I just opened this into the browser. So nanomotor dean, we have another. So I'll just write this. Here IS closes, okay, in this country right here, okay. Now Harry's friends who seem either I am facing right here. So I just had my core right here, which is okay, and this is also k right here. So R Here you can see that I just replaced this with print. Our underscore press printers core are, and then here the continental right here. So this hair print r means that will simply display the information about the variables in a way that is readable by the humor. Let us see how. And here I just then this court again and here you can see that that will show me the entire structure of the eddy. Like USA is one, Germany Harris to sorry, 49. And then UK here is 448. Hope so you understand now right here that how our SoC or delaware is work and what is the structure of the associate DO add is right here. Now here, you can see that ice-cream move this here. And now I'm just going to create some of the, or. I just keep this and hair eyes go to clear some of the different coordinates here. Firstly, I have to create this array. And this is, suppose a country's adding. Here, I just created. And we're, I just create this breaker right here. And inside this brag, I'm just creating some of these information right here. Now here I am using for each loop, why we use foreach loop right here. And you can close this with a semicolon right here, okay? Now here, you can see that I'm screwing up for each loop right here. And this is for each loop. And Harrison said that this is daughter's hand, countries and countries right here. So countries as here, I just create variable a and is equal to N greater than sign, which is underscore here, I just get the value right here. Inside of this statement is closest to insert this statement here you can see that firstly, I will get the key and key which is equal to. Then here I just concatenate my variable here. Then here, after that, I have to write that value, okay? And value which is also equal to o. And here you can concatenate a underscore here I just write values wherever you get this value as well. Ok? Here you can see there. And I just read that equal and equal here. Let suppose we have a single end brake as well. Ok, here you can see that that you can use this SO2, CO2 at AVL. You're going to get the keys and the values as well with the help of this associative array as well. Before an inner core. And here you can see they're either sliding, did a little mistake, and dismiss the semi-colon right here and here, this is an adding. Ok? So if you are declaring this bracket sign and then semicolon, so you don't need to create or you don't need to write the area as a keyword right here, ok. Here you can see that I save this. Now I'm just running this code again. So here you can see that this is our first chord, which is a complete destruction of that. And here you can see that posse that will guard the key here is Germany. And then we had a key here which has values just 49 here because our Gemini current record, similar case like USA is a key right here. And then value of USA here is one, and UK here is key, and the value here is 44. So I just put these two together as hopefully you understand now that how this associated areas work in PHP programming language and what is the use of that? If you find any problem regarding to this lecture, please let me know and thank you for watching this lecture.
34. PHP Multidimensional Array: The multi-dimensional array is an array in which each element can also be an eddy. And each element in a sub n can be an eddy or further contain itself and so on. Like multi-dimensional areas are such areas, which is toward and another area at each index instead of a single element. In other words, you may say that we can define multiple dimensional edit, edit, edit. As the name suggests, every element in the attic can be an Eddy with d can also hold other subarray. Let us see. Before going to the multidimensional array. Here, I just tell you one thing about that. However you is turning the matrix. So what are the metrics right here? Let's suppose B has three rows and three columns here. Ok, here you can see that I just create three rows and three columns right here. Same is the case like here. I is clear three rows and three columns here. Okay, and 151617, ok, here you can see that. So then you are just creating the metrics here when you multiply this matrix right here for the 0 index right here, that will multiply all of these values. Then one, so one here and then two, then three. Similar case like three all and then 45 seem in a case like that. So multi-dimensional array is also work like metrics. Howard's work legacy. Here, I just create, let's suppose and add it here. And adding here is country, which is equal to Harry's, right? This isn't adding. Okay? Then inside this ad I just created when another added. This is added right here. And this add here is, let us suppose here we have the name and the name here, which is equal to I described here. The name here is let suppose the how, the name Bob. Okay, then here I just create some of, you may say that this is the address here of the Bob, is equal to here it is, right? That this is, let's suppose XYZ is treat USA. Okay? Here after that, I will create some of the email of that Bob as well. So email here, which is equal to here, I write that email here, is there. Suppose x, y, z at gmail.com, okay? This is how we create edit. I will get this is added here where you can find the keys and the values, add them. Here. After this, I just create. So here you can see that after this, I will create one enter that added eight here. So the area here for The end of the value as here, I just write that that is David. And the diode here is let suppose David Street USA. And then here I just write that this is ABC at gmail.com. Okay? Here we are at gmail.com. So we are creating one another edit right here. So we have the two areas right here. Okay, after that here you can see that I just create or I just closes added ICT Harris is a multidimensional arrays. So I just take 2D editor idea, OK. Here you can see that I just created equal and the coherent which is equal to IS right, that, that ball in for mission here. And then here I just concatenate dollar sign and then heritage, right? This is country. Okay. And her eyes, right? This is an index number 0. Okay? Then here eyes right, on an X number 0. And then here you will print. And here you will print the email as well, okay, and here is read the email as well. And here I scraped comma email, and here i comma and I'll just write slash n here. Okay, here you can see that I'm just accessing the element of that as well. Here. I just create and here I will go to the multidimensional array and then here. So you can see here that will print me the information of the bob. Firstly, here you can see that that Barbara information is here and I just get only the email from that as Okay. Here you can see that after this, I am just writing here that this is the index number two right here and here I just want to get the address of that. Ok, here, the information here, david. Now here, I just run this code again, and here we have an error. And the error here is inside this Lanham or 228. So here you can see that I just remove this from here. And we have an address right here which is two. And this is a Ken coordinations and this is equal right here. Yes. Okay, here demonstrating that this is on ad number two, but this is Northern LA or index number COOH right here because we have the two index right here, which is 01 only. Here you can see that as go to the browser and refresh it again. So here we will find that the information of Derrida is here and the devil is living in the street and that will only get the address indexed from that. Ok. Here you can see that that will simply get the address from that area. Helps you understand how that hall, this multidimensional arrays work. So simple concept, the matrix here, okay? If you find a new problem right here in this lecture, please let me know and thanks for watching this lecture.
35. PHP Sorting Array: Hey guys, welcome to this lecture. In this lecture we are going to talking about the PHP sorting areas. Php provides a variety of functions and options for sorting and adding. The sort functions which excludes options for specifying this trends or numeric sort visits in case or which is a case insensitive to sort. And you may say that this is an kind words and numbers into the natural order. Okay? Sorting letters to the order data in an alphabetical numerical order, and the increasing or decreasing fashions according to some relationships amongst the data items. Let's suppose me how the data 19. Then here I just write for the inherent rate 25. Then here, six. Here I just write that this is 56 and this is 99 right here. Now here, you can see that I just convert this into the index right here. Okay, here you can see that these are the some numbers what I am writing here. Let's suppose we have index number 0, then one, then 23456, and add the last we have the thalamus means that the assailant index right here and the values here are IID, then I just sort these values. So here you can see that I just cleared. Let suppose this is 1234567. Here, 12345678. Ok, here you can see that this is sorry, this is 23456. And here you can see that when I just started this function or stored this index right here. So let just see. Firstly, I will take the smaller value, smaller value in this index right here, which is two. Then I just check what are the values of k 345. Then here me hell, the value six. Here you can see that, or sorry, we also have the four values. So I just write for, then here I just write five and then six after this value six here. So we just go to add 19 value here, okay? Then here we have the quantity value, then 56 and then 99 here. So here you can see that this is our sort algorithm and this is unsorted phone editor right here. Or you may say that this is unsorted form. Now here you will see that how I just sort these kinds of values with the help of PHP. Let just see, you can see here that this is sorting. And here you can see there. And this is H1 tag right here. At one. Here you can see that I just cleared a variable. Let's suppose, which is numbers right here, plus d, a how to ride my PHP code. And after that, I just closes core right here. Here IS right number. A number which is equal to here is right. Okay. Inside this hair you can see that eyesight 19 and Harris Raid 465 eight ninety nine fifty six and Harris late 20th. When this is up to you, you can sort any of the numbers right here. And I just closest core right here. And I just use one of the function name which is using a store. So sort is for sorting you are numbers right here, which is in ascending order. Ok, here you can see that I just write that. Here. I have write this number as the variable age. Okay? Here you can see that I just simply use this sort meteorite here to sorting my number right here. Now here, I just use equal. Suppose m is getting the result of this numbers only. Ok, here you can see there. Let us see what happens when I'm just running this code right now. So here you can see that if I just run this code right here. Now here, when I just run this code right here. So there's an array error, just because you can see here. Here, we just simply get the equal results. So that's why this function is not taking the result of that sort. How do we get this sorting algorithm right here? And with the help of that, we create a new variable here. Let suppose we are just creating a new variable here, which is adding ok, and which is equal to heritage, right? Firstly, that we'll call all of these values. Here. These values are saved into the numbers. Okay? And here you can see that I just used for loop. So for knowledge, which is equal to Harris, right? 0. Then here you can see that dollar sign x, which is less than i, right? And here I just write that x which is plus, plus right here. Okay? This is just a for loop where I'm scooting right here. I just copy and pasted right here. And here I just write that this is, let us suppose a number. And the number here will pin our, this variable x right here. Now here you can see their eyes, right? Equal. Equal is simply a hug right there. This is a thinner line segment right here. And I just remove this. Okay, here you can see that now here that is foreign to the browser. And I'm gonna just run this. So we have an airline number 13, which is for-loop. And for x here is less than number, okay? And then here I write x plus, plus, okay? The number here is dollar sign, okay, which isn't my variable here. Okay? Now here, when I just go to the browser and refresh this page. So we already have an adder right here. Suppose yes, this x, k. Now I just run this again. So here in the line number 14, we also firing right here, which is equal and the number and then here. So it is fine. Now you can see the adder here is which is showing me that you have missed the offset right here. And the offset here is undefined as because of here, we need to add the name of added right here because we are getting this code, edit IT, login. Here, I just save this and refresh it again right here. So you can see that firstly, we have some kind of list. What is, as you can see here, which is 194658, nine thousand, nine hundred fifty six twenty right here. When I just sort these values right here. So firstly, it will sort for 56819205699 right here. Hopefully you understand now that how you can sort your values, okay? Here you can see that you can sort any of the values right here. Firstly there, when I just write in unsorted form right here. Then with the help of this sort function. And then here I just simply called, use this called meteorite here to coding these values right here. And here, you can see that I just simply arrange these all of with the help of this sorting matter right here. If you find any the problem regarding to this lecture, please let me know. And thanks for watching this lecture.
36. Create a Table with help of For loop: Hey guys, welcome to this lecture. In this lecture we are going to talking about that, how you can create the table using a for loop in PHP programming language. For that purpose, if we are using the for loop right here. So here I just write PHP. So this is a PHP tag here. And now inside that here I said that this is the for loop. And for her eyes right there, suppose i is equal to one. This loop or this table is starting from the one, then her eyes, right, that I just wanted to create. Let's suppose three rows right here, okay? And then here I just write that i plus, plus. Now here I just write that, simply write the ENCO. And here I just write that E cohere is the TR tag right here. Okay? And I'll just close this code right here. Now here I just write 44 here. I write that this is j and i is right here, J, which is equal to one, then favor the case like I Harris, Right? J which is less than or equal to her eyes, right? That too. Or harris, Rayleigh, this is two. And then here is right, g plus, plus right here. Now after that here I started their equal and equal here is, I helped write that our table data tag right here. At first stage you can see here I just define the roles of that. Then here as it find the table data right here. Inside this table data facility, I will get the variable i here. And inside that hair eyes right? Table i. Then here. I just used, then here I just used HIVAN G, which is equal to here. I just can't get in it. I and j. Which means that that is the craftsmen of ING right here. And then here I just close this table, you're tr tag right here inside this PHP code. Okay? Now after their hair, I just write that this is equal and coherent is TR tag right here. Okay? Now here you can see that. Now as you can see that I just clear some of the table size Lesbos. The tables row here, R three, and the tables are two sides, okay, is the colons ratio. Now here you can see that inside this body tank here as defining the table. And the table here is costly. I have to align this table, which is equal to IS right, left. Or you may say that this is right heavy. Now her eyes right border of the tables, which is equal to here I is right, that this is two pixels. And then here I just write this is cell padding here, which is also equal to her eyes, right? Four. Okay? Now here I use cell spacing, which is equal to i, right? Right here. This is 0 right here. Now you can see that firstly the hub right alignment of that. And then after that, we have said this painting at that. Now after that here you can see that I just remove this table right here. Ok. Hopefully you understand now that how we can create the table using PHP in a facility, I heard to clear some of the era where time is seeing right here, which is there. Suppose this TR Tang and here we have the eco statement right here. Now after that here you can see that we held the dollar sign as well. Now I'm just running this code right here. And here you can see that this is my output here, and I'm just creating one of the table using the PHP, which is, which are the two columns and three rows right here. You can see that 123 right here, and this is one. And hopefully you understand. And you can see here I'm just creating some of the for loops right here, which is the multiplication tables. They're just see what is that logic core hedges Right at first stage. That is one is equal to one. Then here you can see that this is one multiplier two. This tool means that this is a column one and column number two right here. Then here you can see that this is two multiplied by one, which is the row number two right here. There's two Martin glider to ij is equal to four, is also in the row number COOH right here. And this is in the column number two, you can see here, and the row number one right here. Now Harris write three multiplied by one, which is equal to three visits. And rule number three right here and here you can see that three multiplied by two is equal to six and which is in column number three, right-hand rule number three. Here you can see that this is just a multiplication of that I did with the help of that is taken, which is I just write in unequal. Hopefully you understand that how you can create a simple tables like this in a for loop using PHP. If you find any of the problem regarding this lecture, please let me know and thanks for watching this lecture.
37. Defining and Creating a Function In PHP: Hey guys, welcome to this lecture. Let's start by defining the word function. Of function is a self-contained piece of code which carry out a particular task or a function. A good benefit of using functions is that they are reusable, caused that need to be performed a number of time. A function is an ideal solution. They can be either defined by you or by PHP. A PHP has Irish collections of ability and function as there. Let's see, in our last lectures, reuse some kinds of print underscore r. So this is a built-in function. Then we had used variable underscore dump. So this is also a built-in functions where does come with a Python Library. Here in this lecture, we are totally focused on creating and defining the function and how to call the function. Before starting the lecture or before starting the coding lecture, we just need to understand that what is the function exactly and how we call the function. There is diagrammatical example of the functions. Let suppose v, how LMS system, we're some kind of students are in one. Then we how the teacher as well. And we have, let suppose administrations as well. Lms is tends for learning management system. Ok? Here you can see that this is the entire project here. So I just define this project into small modules or a small functions right here. Here we have the students, then we have the teacher, then we have the admin as well. So in students, there are the others function as well. And in teacher we heard a lot of other functions as well. Let suppose a student departments to renames. And let's suppose here we have the student fees records, then hear the teacher designations teacher. Let suppose teach her subjects what they are teaching, and the teacher salary as well. And seem as our case like administrations ever. So here is just our example on this function right here. Now here you will see that how we cleared the function in PHP and how we call it. Let's suppose we have the function, and the function here is abc. So here you can see that through declared, declaring the functions here. Firstly, you have to write your function as the keyword, and then you have to write your function name here. So this is how you can create your function. Then here I just write equal and equal. Here is, let us suppose demonstrating that. Welcome to function. Ok, And here I just close a score right here. So as you can on your screen that this is car, the functions definitions right here, okay? And here, this is a simple statement or a print statement right here. Now here, if you create the functions or if we define the function. So you can see here, if I just run this function into the browser, so there will be no output for that functions here. Ok, as you can see on your screen, densities just because of venue are just calling or when you are just creating the functions. Let's suppose we held a function here is ABC. When we clear this function. And we want to get some pieces of the code inside this function. So we have to call these functions to getting the lay code of this function. Here you can see that I just simply ride ABC and here you need to call this function right here. Okay, now I just go to the browser refresher. So you can see here, I just get this function score, right? Heritages, Welcome to the functions right here. This is how you can see here. Firstly, you have to get a year, the function, okay, then this is some piece of code, what you are just creating here. And this is how you can call your function symbol. You have to write your function name, and then you have to and with semicolon sign. So this is just our functional declarations of functions calling in the PHP. Hopefully you understand now, if you find any other problem regarding to this lecture, please let me know and thanks for watching this lecture.
38. Functions with Parameters: Hey guys, welcome to this lecture. In this lecture we are going to talking about that, how you can define your function with the parameter. User can pass the parameters to the PHP function as the parameters are used as the variables. They are defined like here. You can see that let us suppose firstly you have write your function's name, okay? Sort of function as a keyword. Then here you can write your function name. Here I started let suppose this is the number one. And here I just write and this is number two. So what is the number one and number two right here? This number one and number two hairs are the CPU edibles. What does the farmer I just defined in UF functions? Pedometer right here. Okay, now here you can see that let's suppose I just write num tree, sorry, this is number three. Number three, which is equal to here it is, right? Num one plus ice, right? Okay? And here I write equal. And then here I just write the result of numbers are. And then here I just right there, this is num three, okay? Simply get numb 3-bit is my variable here. So what this none three do. Firstly here that will collect the num one value, then that will collect NumPy values. And here you can see that when it's safe, num 3c if the value of num1 and num2. So simply we get the num three values right here. So here we have the poo pedometers. Ok? And now here you can see that I just defined there. Let suppose here we had a values when I just calling functions here. So we had a value, let us suppose six and for, okay. So we have the two values, six, which is number 14, which is number two, right? Okay? Now here, when I just run this chord, so you will see that. Yes. Okay, and you will see that the result of the numbers are ten, which is equal to, you can see R6, six plus four, which is equal to ten right here. Hopefully you understand that how we can define the functions pedometer right here. And then we can get the values of that parameters right here. And when I just calling this function, so at that stage, I just initialized the value of that function as hopefully you understand now how dysfunctions parameters work in a PHP programming language. If you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture.
39. Passing Arguments by Reference: Hey guys, welcome to this lecture. In this lecture we are going to talking about all the passing by the reference in our PHP functions. Or I will tell you about that, how you can passing by the value in PHP and what is difference between that. By default, function's argument are passing by the value. So that if the value of an arguments within the function is changed, so it does not get changed outside the functions to allow of functions to modify it. Arguments, they must be passed by the reference had there. So user can pause the value as a reference to the functions. Let us see how we do it. Here. I'm just creating firstly are two functions, which is for passing by value and passing by reference. Here I just write function which is let suppose abc. Okay? Here, the how the functions barometer as the vat even right here. Now here I stayed very well. I and variable i, which is the value here, is, let's suppose a PHP. Ok. Now here, after that, I just created one of the, another variable. Let's suppose the variable Harris high and it is equal to here I just write that this variable high, which is equal to here, I just pass this string of debt. Let suppose this is PHP, and here I just write PHP five. Ok. You can see here. Now here I just create a two variables here, which is a name of high and which is a name of AI as well. Okay. Now here you will see that I just write ABC. And ABC is my function name here. So I'm just calling the functions here. And inside this function, I'm just creating variable here which is high. And I am just calling very well high and variable, sorry, a functions and images, ABC right here. Okay, now here you can see that when I print this statement of the equal right here, and I just want to print hi here. So you will see that what will be our output. Now here you can see that I just run this function here. So you can see here we have got the PHP five-year and it doesn't change any value right here inside this eco statement. And that will simply get the PHP value right here. Okay? Now here, you will see that this means that, that is simply getting, passing arguments by the value only just because of here, it will not get the value of the irate here. It will only get the value of the high what is declaring right here. Now here you will see that PHP and then closest PHP tag right here, Okay? Now here. And Firstly I had to close this. And now here as well. Now here you can see that I just cleared functions. Function is let suppose x, y, or z. Now here, the point is here that how you can pause the, are women by the reference. How we give the reference here? Let's suppose v, how the function's name, which is x, y, zed here. Now here firstly, I will write and signature. Why this n signature is used right here. This is just because of and significantly is toward your adders and dead will get you the address of the variable right here. Now here inside. Let suppose this is variable a here. And after this variable a here, I just write that e, which is equal to here, I just write higher, or here I just write PHP CME as a case like our old example right here, okay? Now here I just closest chord. Now just come to the, another variable right here. So here let's suppose we have the variable here is high and the high variable or hello variable here. So which is equal to here IS right, this is PHP five. Ok. Now here I just write ABC. And ABC here will, I will get the function name, sorry, a variable name here, which is and here we have the variable images. Hello right here, okay? And then I just close this code right here. Now here when I just print this statement. So here I will get this hello as the variable name right here. Now here you will see that I just pass the value by the reference. This is just because of I held the address of that variable here when I just run this code right now. So you will see that I will get the value here, which is, hey, sorry, which is PHP five. This is show me the reason that this is just because of here. I just call the function name, which is ABC, right? And this is slightly a mistake, right? Hedges, because of here we have the functions, the images XYZ. Now here you will see that when I just underscore so that we'll get the PHP right here. You can see here firstly that we'll get PHP five and then we'll get the PHP right here. This is just because of navi parsing the functions by the arguments. And sorry, a functions are women by the reference. Here you can see that firstly, that will store the address of that variable right here, which is a variable a here. Then here we have the value of that variable. Now here you will see that we have the same value like our this code. We're passing the arguments by the value. Now here you can see that I just call my dysfunctions name here and then simply call this hello. Okay? Because this will get the storing of the address right here with the help of this and signature. And then that I will pred, sorry, I will print the result of that variable right here. Hopefully you understand now that how we pause the values by the arguments and the positive value by the reference in PHP functions. If you find any of the problems regarding to this lecture, please let me know and thanks for watching this lecture.
40. Functions returning value: Hey guys, welcome to this lecture. And in this lecture we are going to talking about the returning values from the function. Functions can return a value back to the script that's card the function using the return statement. Let us see how we do it in PHP code. Let's suppose the how the PHP tag here. And after that we have the function name, which is ABC right here. Then we have our two parameters right here, which is number one. And then we have the other parameters. Let suppose this is number two right here. Okay? Now here we have one another function's name, which is the number three here, is equal to hear his right. Number one. Plus here I just write number two. Okay? Now, after that here you can see that I just create the return result, which is I just get the number three right here. So I just write a return statement or return as a keyword to return this number three, value write. Now here you will see that. Now here I just create one another variable that suppose this is variable a and variable a which is equal to, I'll just write that. This is the function's name, which is ABC right here. And here I just cleared the value which is 920. Ok? Here you can see that after that, I tried that equal. And here IS right that the value after adding the function. Okay? So here I will get the variable E right here. Okay? And this is the very able, right? Now you just see the output of that here. So I just run this code. And you will see that this is the output here. Then we are just returning the value right here, which is 29. So here, totally focused on that word, which is return number three. So here we just use the return statement inside this PHP code right here. So in PHP, return keyword is used to returning the value from the functions only. Hope so you understand that how we use the return statement in the PHP programming language. If you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture.
41. Functions with Optional Parameters and Default Values: Hey guys, welcome to this lecture. In this lecture we are going to talking about the default functions pedometer in PHP programming language. Or you may say that the optional parameters and getting the default value of the functions pedometer on. When you are designing your functions. It is often had to be the default value for the parameters that are not passed. The PHP does this for most of this functions and it saves you having to pass in the parameters and most of the time, if they are usually the thing. Let us see how we define that. Here. I decide PHP and I just close as PHP tag right here. Okay? Now here you will see, let us suppose we have the function then the function name here is ABC. Now here the main concept is that, that how we can rewrite the default parameter, let's suppose v, how the variable a and E here is the value of 50. Okay? At function's parameter, I, just initialize the value of a as well. Now here you will see that after that, sorry, here this is a function. And after that, I will write a return statement. And the inside the return statement, I had to write that let suppose value. And here I just ride variable, okay? And I will get slash. And for a single algebraic asthma head, you can see that after that I just cleared function named ABC. Firstly, I will get the functions, or I will call the function right here. Then here I just write a, b, c, and here I just initialize some of the other value. Let suppose this is ten, sorry, this is the value here is ten, okay? Now after that here I just write a, b, c, and the value here is a 100 as well. So this is how we just create some of the values here. Due dysfunctions only. And I will call these values at every time when we are just calling the function right here. Run this code. And here you can see that I just didn't get these values right here yet. And this is abc right here, the function's name. Here you will see that either didn't get any of the value. This is just because of where I just use a return statement. Ok, now here if you want to get the result of that, simply replaces with equal. And you run your code right here. Firstly that you can see that v, how the empty functions call right here and no means no variable is passing right here. So that will also give me the result here, which is 50. This is just because of here you can see that I just create a default parameter right here, okay? Or you may say that this is our option better meters, which is give us the default values. So here you can see that. Then you have seen that we have the values is ten and then the 100 item here, you can see here 1000. So you can see here that you can also define your defaults parameters are the optional parameters with the default values as hopefully you understand now that how you can get that, if you find that there's a problem regarding to this lecture, please let me know and thanks for watching this lecture.
42. Dynamic Function Calls: Hey guys, Welcome to this lecture. In this lecture we are going to talking about the nine functions called a PHP. In PHP, you can have the dynamic functions calls, that is during the executions of your PHP scripts. And you can triggers a functions cars, which is a base on the certain inputs are the conditions which you do not know before the hand. Let us see how we use the dynamic functions called in a PHP. Here let suppose we have the function name, which is, let's suppose we have a functional image, is ABC right here, okay? Here you can see that after this creating, creating this function here. So this is a function. So after creating this function here, eyesight and eco here is this is dynamic function call. Okay? Now here you can see that I'm just creating a function as the variable name here. And this is equal to here I just create or hair, I just write a string which is ABC right here. Okay? Now after that here you can see there I just create or call this variable right here. Hopefully you understand now, here I just simply create our statement. Abc is our function name right here. And here I just create a variable limit is function and which is equal to here I just call ABC. So this is called the dynamic functions call here when I just run the score. So you can see here, the expected result here is dynamic functions called right here is called this function right here with the help of dynamic functions column. If you find any problem regarding this lecture, please let me know. And thanks for watching this lecture.
43. PHP anonymous functions: Hey guys, welcome to this lecture. In this lecture we are when we're talking about the anonymous function in a PHP programming language. The functions without the name is card, the anonymous function. Anonymous functions are Fanon as the closures which allowed the creation of functions which have the noise passive varied name. They are most useful as the value of the call back. Pedometer. Legacy, how we cleared the anonymous functions in PHP programming language. Let's suppose we had a variable and a variable a which is equal to the function's rate here. So I just take the anonymous function with the name of the variable right here. Now here you can see that equal and I say that this is an anonymous function. Okay? Now after that here you can see that just create or I just close with a semicolon right here. And here, I just create, or I just call this variable right here. Okay, here you can see. So I just run this code and here you will see that. And this is, you can see this is the anonymous functions here. Now you understand and how we can create the anonymous functions and how we created and what is the anonymous function right here. Helps you understand now, if you are any problem regarding with this lecture, please let me know and thanks for watching this lecture.
44. PHP Variable Scope: Hey guys, welcome to this lecture. In this lecture we are going to talking about the PHP variables scope. However, you can declare the variables anywhere in the PHP. Scripts. Is copes refers to the visibility of the variables. In other words, the variables which are the part of our programs can see or you can use it. Normally, outer variable has the globalist course. One, it's defined. Every part of your programs can access the variable. In this lecture, we will see that how we use it, the variable score, let just see here I just used variable scope with a function. So here inside function name, which is ABC right here, and then here I just right, we have the variable with the name of a and E here is I just write a PHP programming language, which is a string right here. Now here, I just tried equal and E code that will print this variable right here. Hope so you understand now. Now here you can see that I just tried a, B, C, and here I will call this ABC right here. So this will be the output of this ABC here, which is the PHP right here. Now here you can see that I will generate some of the undefined variables, which is an underwriter. Now here you can see they're equal and equal here is a OK. Now when I just run this code right here, so you will see that. So v, how firstly a PHP right here, which is our output, and this is our undefined variables cooperate here. Similarly, if you try to access or port and outer variable inside the function, you will get an undefined variable error. You can see here. Okay? So here you can see that this is where I just define a variable is cooperated here. Ok? As you can see here in this example, like variables declared inside the function is not accessible from outside the functions. The variables declared the outside of the function is not accessible inside the functions. So these are the, some of the variables corpse in a pH people when I mean language, in any programming language like this is a separations of the reduce. The changes are less, sorry the chances of the variables within the function which is getting the effected by the variables in the main program. Like here, you can see that I just create a variable a. And if you want to access these variables outside the function, so you cannot access that. And if you declare this functions outside the function. So if this variable outside the function, or if you want to access this inside the function so you cannot access them. This is car or this entire program is card. A local variable is core. If you said any of the variable here inside the, outside the function and create this variable as the global variables. So you have to access this functions anywhere. So you already studied about the global variable scope in PHP programming language. So no need to repeat that. Simply just call your concept right here. Hopefully you understand now, if you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture.
45. PHP Recursive Functions: Hey guys, welcome to this lecture. In this lecture we are going to talk about the recursive function. In PHP. A recursive function is a function that calls itself during executions. This enables the functions to repeat itself several times, all putting the result and the end of each iteration. In a simple words are recursive functions is a functions that's call itself again and again until a certain condition is satisfied. The common example of the recursive function is first one is a factorial, and another one is Tower of Hanoi. So here I just show you the dagger, a diagrams of the towers of Hanoi. Let's see v, how some of the books right here, okay, and I just cleared this as a power of some of you studied about that PHP programming language. So at best hit the tower of Hanoi when you are disturbing about the data structure. So that is very important concept. And you can study about a recursive function as well. The Tower of Hanoi means that when you are just to transfer this and this tower into the, another towers here, or these, all of these lakes. This tags here to another tower. So here we use the recursive functions. Ok? So this is just our diagrams of the towers of Hanoi in the programming language, which is I'm very much common example right here. Okay? And let's suppose v, how some kind of values let suppose 321. And I just put this into the power of nine. Then here you have to firstly write that. I am just writing one here, and I just shift this one into this tower. Then here you will see that I just saved this to into this tower. Then here you can see that I just shift one here into this tower. So here, v, how to value a, we have only one values right here. And then after that here you can see that I just shift three right here. Okay? Then here I just shift one, okay? And here we have the two alleles left and then here 21. So I just completely shift my values to this tower. So this is just a tower of an RU studies yourself. Now here you just come to that because your function in PHP. Now here in the coding example, I will tell you about the recursive functions. And here I will take the example of the factorial numbers right here. Now here I will create the functions. And the functions here is fact. Fact is, you may say that this is four factorial. Okay? Now here I just used if statement. So if statement like here, I just write variable n which is equal, which is less than 0, and that will return the value of minus one. This is our wrong value here. Okay, remember that? Now here I just give it one if statement again. And here it is, right, if n, which is equal, equal to 0. And then here you can see that. And if n, which is equal, equal to 0 right here, and here you will see that I have to return one right here. Okay? Now here you can see that I just write a return and here I just define the logic of factorial numbers. So here I stayed fact. And then here I tried variable n minus one right here. So I just create some of the recursive functions right here. You just call itself a certain conditions is not meet right here. So this is very common example where when we are working with the because your functions, okay. Now here our underscore into the browser. And you can see here that the factorial of, here, you can see that one hair of the factorial of this number here is equal to, or sorry, this factorial of this five here, which is 120 right here. So you understand now that how we can use recursive function in the PHP and what is the Tower of the Hanoi. So I will clear the article on this recursive function and the power of n i as well, because this is a very lengthy topic. And there you have to write your algorithms as well. So don't worry about that. I will create some of the articles on that and we'll applaud with that lecture. So if you find any of the problem, the garden with this lecture, please let me know and thanks for watching this lecture.
46. PHP Break: Hey guys, welcome to this lecture. In this lecture we are going to talking about the BRICS statements in a PHP programming language. The PHP big statements, which is breaking the execution of the for loop, do-while loop, switch and foreach loop anything's or which is breaking the control flow of the programs. The break is a keyword which is immediately ends. The executions of the programs are execute the loop or a switch structures. Let's break that current flow of the programs at specified conditions and the program controls which resumes at. The next statements are outside the loop. Let us see how we use the break statement is eight here. We already studied about the break statement or we already use the break statements. But here I will give you the complete knowledge about that. So here I just write for i which is equal to one. Then heritage side i, which is less than or equal to five. And here I tried I plus, plus, sorry, this is i a plus, plus right here. Now here, you will see that offer, that ice right, equal and coherent is there. Suppose here I just heard that this is I, and here I just use a break statement. Okay? Here you will see that. Now after that here I just closest chord and I just go to the if statement. So if here, if I and II, which is equal, equal to her eyesight to okay? This means that if I resist treatment due to simply you have break the program. Okay? So here, what is the flow of this break statement? I just take four loop right here, which is the initialized statement which is starting from one. Then here i, which is less than or equal to five, means that the value starting from 01234. Okay? And then heritage, right? I plus plus, so plus, plus which is one plus one, which is equal to plus one, which is equal to three, right here, ok. Here you can see that I just said the if statement. This means that if the control flow of the program will reach the two, break this statement right here. So we have the expected is Elvis is 1012 right here. Let's just see what the result is. 01 or two or anything else right here. Here you can see that I just run this code right here. So you will see that how the resultant value, which is starting from 12 and that will break the programs here. Two, y, this is 12 right here only. This is just because of here you can see that our loop is starting from one. Okay? So here we have only one and when the loop at two, so it simply their program will be break right here. So the flow chart of that here is then V. How does conditions there, suppose v, how these conditions right here. And if you run this conditions, so if this condition is true, so simply that will execute. That is now here v, how this treatment here, if this condition is true. So simply that will check these conditions right here. And simply, if this condition is meat, that will break the programs. Ok. Hopefully you understand now, I knew the problem regarding this lecture, please let me know. And thanks for watching this lecture.
47. PHP Continue: Hey guys, welcome to this lecture. And in this lecture we are going to talking about the continuous statements in PHP programming language. The continue statement. This means that like our break statements when we are breaking or programs at certain conditions. So with the help of continuous statement, we are continue or flow of programs from the certain conditions. Let us just take or old examples right here. Okay. Here you will see that how the certain conditions, which is like i, which is equal to one and i is less than five and a hair i a plus, plus. Here we have the eco statements right here. And then here you can see that our programs here will be terminated offer leeching this conditions. Okay? Now here you will see that if the, if the program is at each, at this condition, so simply you have to continue this statement right here. Ok, here you can see that when I just run this code right here, and this is a new program. So here you can see that. So 012345, so that will not starting from 0 because VR's condition is starting from the one right here. You can see here our flow of four gram is same like the normal execution. Now here you will see that ice remove this. And here I will write if history. So if this program is continuing right here, now here I just write equal. And then here the, how the running program here is i. Now here I just write equal or focused, right? Equal and which is here, I just write BR tag, close tag right here. And then here I will run it again. Now here you will see that. And I just run this. So the flow programs, let's suppose you can see here that is starting from the one right here, the one right here, ministry to do so that we skipped the conditions right here with the help of continuous statements. And then that will his flaw of programs right here, 345 and then Luke right here. Helps you understand how it seems to it seems about our seemed like the break statement, but this is different than the bricks statements that V, How the only result which is not print too. If you want to escape some of certain conditions, like if you do not want that number three executions right here, that gauge case, you have to use the continuous statements to avoid like all of the flow of the program. If you want to execute 12345 and you do not want to execute only. The third is treatment idea or third executions here. So simply you have to use your continuous statement right here. So that will, that will avoid this statement and then the flow of co-brand will continue or flow of a program will execute. Normally. Hopes your understandable, if you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture.
48. PHP Math Operations: Hey guys, welcome to this lecture. And in this lecture we are going to talking about the math functions in a PHP programming language. Php provides many predefined met, constraints and the functions that can be used to perform mathematical operations. Vha, the different kinds of math functions we are be hell. The ABS function always takes a return absolute value at the positive numbers, then v, how it cause functions, which is you turn the arc or closing of the numbers, okay? And also we have some kind of Ci, L functions, which is take the functions around, functions that will take the rounds values, okay? And only about the values like 3.3 values, that will take four values, okay? And you also have the floor divisions as here in this lecture, I'm talking about the ABS function, which is always taking the positive numbers. Let us suppose here I'm stating equal and then here I just write the function which is abs function. So I'll just tell you about that. That will alert. That will always take the values as the positive. So you can see here. So when I just run this code right here, they're just see. You can see here that value will be the minus seven, so that here, this value will take here the salmon only. Now here, I just go to add some of the other values. Like this is 7.6. So when I just run this code right here, so you can see here, this is 7.6, right here. This is taking the positive values right here, okay? And here this is the continuation of and this is a kind of continuation of the BR tag right here. Okay? And if it's the BR tag here, obscurantist handle, so that will simply give us the single land breaks right here. Now here we see IEL functions, Soviet videotape the only boat values. And here you can see that Ci L functions, which will, which will Alice take drown the boat, the values here. Okay? So let's just see how sorry that is. I L functions, okay? We just take round function that I don't have functions, okay? Here you can see that. So this is narrower age here, which is in line number 11. We are, we said this before, this BR tag here. So just do it. Now just turn back to the example. And now here I just write this is let suppose we have the value which is 4.6, and then we also have the values which is 5.6 as well. Let us see how this variable take these values ads around evoke. So here we miss some of the parentheses right here. And now, sorry for that. And now let's just go to the output of that. Here. I just run this code and the browser and run it again. So the output here is you can see that there is salmon than 7.6. Then here you can see that we have the venue is 8x 56 right here. Now here you can see that I just took or be pasted right here. And then I will write here, here and here as well. Okay? Now I just go to the browser and refresh it again. So you will find these values right here. So this is, you can see that the two math operations on group met function, the history about PHP in this lecture, I hope you understand now. And if you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture.
49. HTML Forms: Hey guys, welcome to this lecture. So far is the fundamental of the PHP programming language, operators, functions. Some of the extra knowledge according to the PHP programming language, some of the beyond the basics of PHP control structures. And now it's time to working with PHP and HTML forms. How we create the PHP and HTML forms. This lecture is totally focused on the HTML forms, and I will tell you about that, that how you could create a simple contact form with the help of HTML. In this course. Here you will see that how the header section and inside the heterosexual, I just defined the title of the page. This is same like our old code, but here we are focused on the HTML sections. So I will tell you more about the HTML. Anyone of you are not familiar with HTML, so HTML, HyperText Markup Language. Here you can see that this is the DOCTYPE HTML in traditional HTML. Html tag ladies. But this Dog Taste means that we are using HTML5 version. Then here you can see that how the HTML, then the header sections means that any of the title of your page will be defined in the header section, then this is a metatag and which is a corrector set of UDF ate. Then anything of the page border you will write inside the body tag right here. No, Firstly, I have arrived at one tag. So H1 tags means that that is your heading number one. So herding them or one is starting from heading number one and that will go up goo at six. Ok. Here you can see that v, how the Contact Us. Contact Us HTML form. Okay. This will be the our heading of the page right here. Let's see that. You can see here, this is our output word, right? In the area which is the edge, one heading. Okay? Now here I just go back to the page and here I'll just write a tag, which is a form PEG ratio. So form tag is using for creating your form inside the PHP or inside the HTML. So this is up to you, okay? Here I just defined the matter, which is the host matter right here. You are very much familiar with the post matter just because of the already worked with it. Here I just write paragraphs, tanks for paragraph means that you have to write some kind of paragraphs. Like this, okay, here inside this paragraph tag, I have some of the liberal. Liberal means that this is a text which is not changeable. Here I just slide, right, liberal and label, which is taking the input name right here, and then here v, how? The firstname here is labeled. Okay? Then after that here you can see that I just take the user input. The user input is just like you are taking the user input into the hex bar. In the user input here is, I decide that this is the text right here. Okay? Then after that, I will create that. And then I just said the idea of eight, which is equal to here. I'll just write input name, which is my decided I'd heritages for ID. So I just write this ID here with a user in perform, ok. This is label what I'm describing right here. Now just turn to the second level right here. So second label here is, you just say that this is email address. Okay? This is a second label right here. Now here you can see that I'm just simply change the name of eight, which is email right here. And the input here is which is the email right here. Okay? Now here, after this, you can see that we just go back to create one another label or whenever user input right here. Or you may say that this is a field right here. So here you can see that I just right password. Or here you are creating the Contact Us form or I just want to change this registrations from Contact Form is sign. Okay. Now here you can see that I just write subject to it. So what is the subject Exactly? So here you have right that this is subject as, and this is here. You have the right subject. And here you have to also write this name as the subject right here. Okay, now here and here, this field is for messy right here. Okay? The message that you are type in Contact Us form. Here you can see that this message, and this is also message here, insert the name. And this is also the input type, which is message here. Okay, after that here you can see that I'm just tweaking. The user input. And user input is a type of submit right here, ok. Here you can see that you also have to write your values as well, which is submit button. Okay? Now her offer that you have to close your farm as well. Okay? Now, here you can see that if you are writing the user input as like this. So this will be shown to you like input fee. If you are working with HTML form or any form right here. So massive and always take in text area where you can find a big window, or sorry, a big text V like this. Now, which is the name here, and the name here is IID. So either name here is message, and the ID here is the input message right here. Okay? Or you can also set the rows and the columns to your text area as well. So this is a columns. And the columns here is, let us suppose this is a Parente columns right here. Okay? And you have to close your text area as well. Okay? So this is up to you. You can write to a text field for that and you can write the text area for that. But text area is, you can find a text area with the help of rows and the columns ads that you can see here, I just see it and run this course. So this is your contact Islam in HTML. Now here you see that I just go back to this and here I just write that. Yes, okay, of VR tang. Ok. Now after that here you can see that I'm just creating one of the end of the song for US. Harry's right at one tag. And here I just right there, this is registration form. Ok. Here. You can see that I just read input type. It is full name or age here. And this is our ID as well. And here I just write this is name. And this is where I just write full name right here. Okay? And this is in prototype is the text ITO, Okay. Here when I just go the browser, refresh this. So you can see here this is a registration form in the full name. Okay, now after that here you can see that v, how to add some of the emails as. So here you can see that I have to write in prototype, which is an email. And the email right here, and this is e-mail as well. And here this is a text field right here, okay? Now here you have to write subscriptions to x as well. So which is subtexts? And here it is, right? This is the mandatory field right here. Hopefully you understand now that these are the mandatory fields, what I'm executing right here, okay? Now after that we also have some of the input type, which is password, and this is the input name. Here is authority. And this is the password. Okay, now here text type, which is, and here I just straight text type, which is equal to here. I just write that this is the password. Here. Here you can see that after this, I just go to the browser and refresh here. So you can see here this is my forelimb we're demonstrating here, and this is the email, and this is here. You can see that the password to the password here is why this password here is incompetent. Showing me this trick like this. This is here. You can see that the type of this input field as the password right here. And here you can see that I have go ride some of the input, which is password right here. Okay? Here you can see that this is a possible and then here is a password. Excellent. Now, you can see that here, I'm just creating some of the buttons right here. The button's here is submitted return. And then here we have the input type button, which is the reset button. And then here v, how the value of that is reset. Ok. You can see here hopefully you understand null now harmonized Schieffer says, so here you can see that this is the registration form and this is the contact us form in the HTML. Hopefully you understand now if you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture.
50. Form Handling: Hey guys, welcome to this lecture. In this lecture we are going to talking about the form handling in PHP. We take our old example and that example V form handling. A simple example that Ben are developing a website or a web application. Often have to create the forms. You take the input from the users. Like logins, registrations, contact for US firms and any others forms. Getting us all on the web page is accomplished using HTML. Php servers as transport those values from the webpage to the server. And then it is further processing on these earlier. As you know that we had the Soper a super global. These are GET and post methods, which is collecting the data from the user and do the processing on it. Let us see how we do it. The farm hurling, a PHP programming language. Here you can see that I have right form. Then here this is super global, which is the post method. Now that how we use the post method. Now here you can see that this is the action, and the action here is form PHP. Here I just create files, which is the form's HTML and PHP right here. So I'll just close this right here. So I just link this form through this BHP backend, Psalm ratio k. You can see here on the back-end code right here. Here I just write a paragraph tag. Same is the case like our old example, which is labeled right here. And the label here is I just write that full name. Okay? And the fullName here is I have chloride, that is the sub x. And here I have to write that this is right here. Okay? Now after that here you can see that you can see I have two died. The input, which is the user input here and the type here is the text. Ok. You can also define the text size to a later. Suppose we have the size of 50 or 24. So this is 24 is anomalous high. Okay. So here is tight when before you have read thirty six, twenty eight, forty eight asthma. Then here we have the name of that format, that field, which is the name here. Okay? Then here we also have the value of that, which is right there. Input type name right here. Hope so you understand now and I just closest coordinate here. Okay? Now here I have to copy this and paste it right here for the email address. Okay, now here you can see that I have right? The type and the type is equal to here. I just write the type here is even. So. This fields only take the email address, not other than that menu or just writing add sine. And let suppose we have a gmail.com that will take this type of text. Otherwise, that will show you the ADA right here and here we have the input name. Okay, now, when I just go to the browser and take the output of that here you can see that this is the input email and bright and prototype email address and the input type name here. You can also change your input type or values of this TextView here let's suppose v, how writing their email right here. And here I just write this is full name right here. This is a b. You can write any of the things right here. Now here let suppose V house some kinds of subject as men. And here you have the right subject. And then we have the text. Type is a text field right here. I just write VR tank here and then a beer tank here as well. Okay, now I just refreshed. So you can see here my Discord Douglas form, look like this. Okay, now before the message, how good and move some beer. Now you can see here my friend and for this form handler are complete right here. No, I just go back to the PHP forms here. Okay, and now I'm just handling my form. Now here you can see there I just write if statements. So if variable underscore, post method. And the post method here is I just write an operator and here I just write as n. Here I just write. Then post mattered. And the post method here is I have Grade Center, which is the value of the name right here. And here I have great. There is dollar sign underscore post method. And the post method here is Nim. Okay? Now here I just heard the coma after this comma here. I also get some of the post method from email as them. So you can see here, I'm just getting the name of that year name. Then we have the email right here and then subject. So I just write here, this is the email, then this is the subject right here. And this is an m here is SEN, OK. Now hair after that, I just read comma. And then here I have the right post method. And the post method here is subject, okay? And now here after this subject, I have go right. And I have chloride that dollar sign underscore post method. And the post matters here is there. Suppose last post mattered and the name here, or sorry, here we have the sin m, then we have this is the message here. Okay, I just copy this and paste it right here. So you can see here, I just get all of the data from my text field with the help of this if statement and then post matters right. Here. Hopefully you understand now. Now here there is a c. So here I just write dollar sign name. I just create these as a variable. And here it is right underscore post method and the postmaster will get the name here. Okay? No opera that here. You can see that I have to write this as e min and the email as well. And here you can see that this is the subject and the subject as well. And then we have the message and the message as well, which is a dollar sign and message here. Ok, here you can see that how we handle variables right now. Now here you will see that if any of you are field is empty or anywhere viewers, any of your field will be like you are missing some of the e-mail address. So that will show you an error right here. So you have to write next. Suppose you have right, if his statement and if not dollar sign, and I will get the name here. So you can see here I will get the name that evil. So here you will write dollar sign, and this will generate the error message right here, and which is equal to here. I just write that in turn. So please enter your name right here. And I just closes. Then we just go to the else if. And the else if here is I have read that email right here, which is the email right here. And the email here is I have arrived there if email and, or sign here is not equal to the logistician match. Okay? This means that if this email is not matched, vid, the syntax like this. So here you have to write some of the emails and text. And this is the email send text right here. Then you have the right sign. Then this slash than plus, plus, and then dollar sign, and then hear slash, OK. And after that you have to write your variable. Okay? So this is up to you. So you can write your syntax like this for the email asthma. Hopefully you understand now. So here offer that. Enter the email when this sentence is not matched. So you have to write u variable email. So here we have red error message. The error message here is please enter a valid email address right here. Ok. Now hair after that, you can see that I have to go to the else if statement again. The else-if statement, if. Message is not matched. So, or messages empty right here. So here you have right at our message. And the error message here is equal to you have right into your message. Okay? And then closest score right here. Now, I still go to the else statement. So n here is firstly, I have to write two and the two which is equal to here, I just write that example at gmail.com or email or you have to write anything right here. Then here I just write if dollar sign. If not, subject, subject right here, which is equal to here I write contact song. Okay? And then here I just write header. And the header which is equal to her eyes, right? Form. And the form here will be webmaster, which is a very common example, and Webmaster dork example.com. Okay? And then after that I have to concatenate some of the text format here, which is R n slash n, and closest score right here. Now you can also set the email here as well if you have the server email, so you write the two. Then here you have right subject, then you have derived subject, then you have write message as well. And here you have write header asthma. So I am expanding this chord up for computing it. Then you have to write a header. And then if you are, if you want to redirect your email, so symbol you have write this header, then location. And that location here is like HTTPS, w or w backslash. And WOW dot google.com or any Your example.com and any of the king or any of the email if you want to redirect after completing this form. So simple, you have write your website right here, so I am just writing Google.com right here and add the last I have to use exit method right here. Hopefully you understand now that how we can create the form handling. Now I am explaining the score for you guy. You will see that I have read some of the underscore match. So this is a functions when you are just matching some of the e-mails, some of the other fields. So you have grade station underscore met. And here we had missed this semicolon right here. Now here you will see that firstly, I have write this form here, which is a very simple form, VR creating these types of form, tired dime in discourse. Forget about this. You already know about this. And now I just come to this example. Here you can see there I just create if his statement, then here I just create. This post method right here. Then here we have the n sine and this is, this means that, that will get all of the data from your front end formed via you have write, Send, name, email, subject. And a message sent here is when you are just pressing your Send button so that we'll get the data from the Send button. Then here name seems a case like send, email, subject and message idea. Now here, I'm just creating these four variables right here. Why I'm disputing the variables? This is just because of here. I just write if statement and if this variable is mesh, so I've agenda it an adder. Or if you are, you are empty or if you are leaving the empty field right here. So that will generate an error right here, which is these enter your name. Seem is a kids like email. And here I just create email right here and then here, one another thing which is a BDD station and the school match. If the email address does not match with the template of email, that will generate an error that please enter a valid email address. And this is the, you may say that the format of the evening, which is slash, then hear slash S plus S plus S and then saturate. Then here, same is the case like name and the email. I just generate one another message right here and add the last, the else statement here. So the else-if statement here, you can see that that will write if you are writing or if you are sending the email to someone. So firstly, you have to write then the email address that you want to send your data. Okay, and after that here you can see that the if statement, if subject and the subject of the Contact Us form. So simple, you are to write header, then that will get the webmaster example. If you have the any domain name, domain name, email address, or domain name or email address. Here you have make here. Let suppose admin at the rate like google.com or any website.com. So you have read the webmaster even right here. And then after that, the email to the subject message and the header. So header here you can see that inside the header, if you want to redirect your website. If you want to redirect the user to your website after filling the forms you simply, you are great distance. And after that, the exit method right here. Now here I just run this code right here, which is HTML4. And then here you will see, so here we have seen, here you will see that how the value of their business for limb than email and then subject, how it's come from, it's come from your HTML right here, which is you have write your Lake her full name, email and subdued. Hope. So you understand now. Now here, go back to that. Here, I just leave this field empty. So you can see here the VHA generated messy right here, which is Ps include adder it, send an email address and you have the missing and the red sand right here. Okay, I just remove this element. So you can see here, nothing happens. Here. You can see that let's suppose V, How high and high editor gmail.com. This is our subject and this is our message. Then I just click on the send message button. So that will direct this to Google.com right here. Hopefully you understand that how this form handling work in a PHP programming language. You know, here you can see that you also add the capture or recapture and do it. So we will learn about the capture and recapture in next upcoming lectures when we are just completely learn involved the PHP and covered the object oriented programming as well. So then at that stage we covered the capture and recapture. So if you find any problem regarding to this lecture, please let me know and thanks for watching this lecture.
51. Forms Required: Hey guys, welcome to this lecture. And in this lecture we are going to talking about that how you can set the requires on the input field. Let's suppose you how set some of the entry fields. And if you leave this blank, and if you want to provide some of the text's format right here, and if the user is not providing, are not inputting them, write text into the text field. So our error message is generated here. So this means that this is a required form or if the user will leave this field. So at that case, that will generate some kind of an adder right here. Here you will see that same like our old example. Here, I just create a form. And the form here is the matter of the matter here is the post method. Now here, I just provide the action. So I just the action right here. Why? I will tell you later. Now here you will see that I have the bride name and the name here is the user input. Okay? Then here I just write type, sorry, this is the type right here. And that hybrid is equal to here, I decide the type here is the tax. Now here, this is a name, and the name here is the name of that field right now. Seem like our old example here you can see that I just create the input type is text and the name here is the name, which is the name of that field. Now here you can see that I just used is Pandemic. And then here I just use a class. The class here is, let suppose I just cleared the error class right here. I will tell you about the Error class when I just working with the PHP backend. So here you can see that I just created some of the PHP tag. So PHP here is I just write if and if here is hazard, which is, you can see that taking the name add r here, and then here, after that I dried equal. And the equal here is I heard right name. And here we write error and closest PHP tag right here. Here you can see that before that, here I have write some of the PHP tag, Laker before this body. Or here you can see that I have to write some of the PHP tag heirs of BHP validate or PHP, required. Php. Ok, here you can see that I just probably the action of that, which is PHP, and there is a required dot PHP. Ok. Here you can see that. Now here you will see I just create some of the email in ports as well. So I just copy this and paste it right here for the email here. Which is an input type of text. And the name here is email asthma. Ok. Similar case adder is their email address right here. I'm disputing that it is an email error. And then here equal here is also email error. Okay? Here after that I have to write some of the input which is a user in portrayed here, is a type of submit button. And then here I have read this in the name of submit, and it is closest score right here. Now here, just go to the PHP section. And here I will write that. Here there is PHP, sorry. And here I will write the PHP and then closest PHP tag right here. And I just read if dollar sign underscore here, I just write server, which is a request method. And the request method which is taking the equivalence of post matter. Ok. And now here I will write dollar sign name and the name which is equal to dollar sign email right here, which is equal to empty string right here. So here I just declare the variable name and a variable email right here. So here I am handling the form data, okay? And after that I am disputing if statement. So if here is empty, empty is also work like Xr if you want to leave your empty files. So that will generate an error right here. This is a boast of name right here. Okay? And then here it is, right? Name eta is equal to here it is, right. Name is empty. Please fill the field. Okay, and then close the score right here. Now here I just go to the else statement. So else. And the else here is I have to write name which is equal to, I had to trim this width. Let suppose this is HTML. And HTML here is the especial characters right here. And then here I will write dollar sign underscore post method. And the post method here is Nim. Especial characters means that that will show you that as GML, some kind of a special character right here. Now, same is the case, like if statements. So I can write this empty statement as well. So here I just write m t, which is the email. So email is empty. Please fill that. And here I have to write, this is also an email right here. This is email as well. And here we have the right email. Hopefully you understand now that how we define some kinds of emails right here, Okay, now here, when I just go back to the PHP require, and here I will run this code right now. So you can see here, sorry, this is a form required. And you can see here that I just submitted this after adding, sorry, B have an editing PHP require, which is in line number 16. Number 16, we have some kind of editor right here. Here you will see that we have an error right here, which is the HTML special characters where I just write, this is HTML. And here I have, right, sorry for that. And I will write HTML and HTML special characters right here. Copy and paste it right here. Now I just copy this entire Chord and Pastry in this required field right here. And I just remove this PHP from that. Okay? Now I will go back to the browser and refresh this. And I just submit this empty fields right here. So you can see here and error messages and hurting right here, which is the name is empty. Please fill the field, which is field, you can see here, and then email is empty. Please fill the field right here. Now here you will see that. And here I have to write some of the BR tag right here. And we are tag here as well. So run this again. And here, also right on BR tag here. Okay? And here you can see that now it's looking fine. And now here as well. Ok, here you can see there when I just glick Hi and the higher dilute gmail.com, So that will taking the user input. Now the question here is why I just transfer these all files into the form required. Just because of here you can see that I just clear these files in the form required just because of for your understanding that I am just creating or I am just writing clean code for you guys here at fastest age, I just tell you that action, which is equal to, I will leave this MD and I will tell you about that later. This is just because of we are taking the action, but if we are addressing this in, into the sum of another file or if we are linking some of the other file, let suppose form required to you how to address or you have to provide the address of this file into this actions. So if you are providing the theme file, or if you are writing the same PHP file or some PHP code in the same file. So here, no need to write the address of any file right here. Hopefully you understand now that how you can set the requires of you a four-year PHP form. If you find an India problem regarding to this lecture, please let me know and thanks for watching this lecture.
52. PHP Include File: Hey guys, welcome to this lecture. In this lecture we are going to talking about the PHP includes function. The PHP include functions allow you to create the modular and reusable code. What is the modular reusable code? Let suppose I am creating three modules right here. Okay? 123 right here. And I'm come back to the reusability of the code later. So PHP provides a four functions that will help you to organize a script file into them modules and reuse them in another district plan. That functions are include functions require functions include ones and require 1s functions. What is the include function? The include functions takes all the text in a separate file and copy them into the file that uses the include function. Ok. Here you can see that some of the example that I am just showing you guys, how let suppose this is index dot PHP. And then we let suppose Paige Dorr, PHP file, okay? And then we have, we are suppose, contact us, fine. I just define these into the three sections. Which means that I just defined every patient Buddha three sections right here. Okay? The first section here, as you can see, is the header section. Then we have this is the body section, and this is the photo section. And same is the case like this is 4. Third, this is body, this is header, header body. And right here, you can see, let's suppose or assume that you have a simple website which consists of three pages. And every page is divided into the three bar, which held header, body and folder. If you need to change the header of each page, are you going to open all of the files for each page and then update the header of the page. If you want to update for dinner of the page. So you will be open the order of the page, all the page layout. Suppose 123 means three pages, and then you will change the footer off all the pages. What does it look? File right here. Include file. We'll separate the footer file and the header file. I am talking about the foreground harder just because of these two files are reuse everywhere. What is the concept of reusability date here? The reusability concept here, once you are declaring the header file and the file with the help of include functions just in glued. The function right here of the header file and folder file. What you already find. And then simply call this function right here in every page. No need to write the code again right here. Hopefully your concept is much clearer about the reusability and The including file of PHP. Here you can see that I'm just creating one of the index file right here. Then we have the footer file here. Then we have the header file and the include file right here. I just firstly Go to the include file. And here I will create some of the PHP code right here. This is a very basic example. Now here I just write in glued. And here I tried header dark PHP, which means that inside here you can see that inside this include file, I just call a function header, which is a function of include, and I just call this header file right here. What isn't header file? Only a heading as defined in the header file, which is this is header. Let us see the output right here. And here you will see that, man, I just run this chord. So simply inside this include file, I just call this header file right here. Or I just use the header file quadrate here. Now here let suppose m just writing paragraph tag right here and here I just write this is body of the page right here. And then here you can see that I just copy and pasted for the footer file as a file only one heading, which is this is a quarter of the page. Ok. When I just run this court, so I just call header and the footer as well. So you understand now that WHO VE cleared header and footer and how we call them. This is very basic example where we created right here helps you understand now. Now just turn to turn next to that example right here. Now here you can see that I just created some of the header files right here. Just want to delete some of the, sorry, want to add some of the things in the header. Let's suppose firstly v, how the website name. And then we have some of the links or some of the menus right here, which is, I just write the anchor type HREF, which is equal to here. I just write that this is the dummy text. So dummy link right here and here it is, right, this is Homepage. Okay? Now here V has some kind of a boat speed. Then we're like, oh hell, FAQ page and add the last V has some kind of some kind of contact page, which is Contact Us page. Ok. Now here, I just change this into the header file. If you are using like if you have some kind of three files or three PHP pages. For PHP pages or six PHP pages. So if you do not write this into the header file and not include this. So you need to add these Alcorn in every single applications right here. Now let us see, I just simply make changes in the header file. And then here, go to the browser, refresh this. So you can see here, my Discord is shown to me here. Hopefully you understand now that how we can create some kinds of stock in the header file and call it into the main file. Let's suppose you say that VR can only calling this England and crude file. But while we call an another files as here, you can see that copy and paste it right here. Okay? And here we have some kinds of HTML5 is here we are creating as okay, this is tough and here I just include this into the index file right here. Ok. Hopefully you understand now that I'm just creating this into the index file, okay, I said psi. Now. Now here you will see I will call costly index right here. And here you can see there this is the index file right here, sorry, the header file right here. And now here we have some kinds of Fortran planned right here. Okay? Hopefully you understand now. Now here you will see that when I just run this core, and this is the indexed or PHP right here. And you can see here. So I just call the header and the footer right here in this page. So every chord in the header and footer we'll get right here. But the body of every page would be different. Hopefully you understand now that what is the include file and how we use them. If you find any of the problem regarding this lecture, please let me know and thanks for watching this lecture.
53. PHP Include File: Hey guys, welcome to this lecture. In this lecture, we are willing to steady the ball, the require function in the PHP programming language. In last lecture, I will tell you about the include functions which will take the pegs in a specified file and copies into the file that uses the include function or that we'll reuse that include file again and again. We'll talk about the require function. The required functions take all the text in a specified far file and copy into the file that you use the include function. If there is any problem in the loading file, then the required functions dendrite, fatal error and hard the executions of this. There is no difference in the required and expect that they handle the error conditions on it. Is the commander be used the require function instead of inclu because in the required functions you have some kinds of adult handling as well. Because it's scripts should not continuous executing if the files are missing or misnamed. Hope so you understand now that what is different between the Required and include functions in the PHP. Let's see the example on the same is a case like or include functions on the place of include, I have to write some kind of require function. Okay? And inside this require function, I just write, let suppose this is headed or PHP right here. Okay, and then closest pyrite here. Now here, eyesight paragraph tag. And the paragraph tag here is, let suppose here I strike. This is body of the page. And here this is the body of the page right here. Okay, and I just closes PHP tag right here. And this is body of the page. And then close this tag right here, okay, which is a paragraph tag. Now here you will see that now here been disturbed and this require function right here. And you can see that here. It will call the header file. And then this is the body of the page. And that requires action which is the same like our old example. Here I just write header number one, which is the file which does not exist. You can see here that I just run this. So that will generate ADA, right? Hopefully you understand now, and it will tell me that there is no such and directory file which is available inside your PHP code. Hopefully you understand now. Now here, same is the case like that. I just write PHP and that is also require and required here is I just write this as a four chord or PHP file. And this is a photo dot PHP file. And then here I will close this chord C and run it again. So you can see here, this is the order of the page. This is the header of the page, and this is the body of the page right here. So hopefully you understand now that what is the require statements and the head of state or sorry, included statement in the PHP programming language. If you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture.
54. PHP Cookie: Hey guys, welcome to this lecture. In this lecture we are going to talk about the cookies in PHP programming language. What is the cookie's? A cookie is a small text file that let use Tor I smile imago data, which is nearly approximating, is three KB or four KB. Data here on the users, which is taught in the user computer. And they are typically used to keeping track of information such as user name. The site can retrieve personalized the page than user visit, visit the page next time. This is like here. You can see that inside the browser. When you are searching something right here, let suppose a Googler calm. So here you can find the cookie right here. What I'm just using cookies here. You can see that these are the eight cookies. What I'm using right here. Hopefully you understand now that what are the cookies and I just below these copies right here, when I just come back again to this webpage. So V has some kind of saved cookie, which is already as torque. So we are, we can achieve these cookies very simply. So a cookie is a piece of information toward the user web browser in our text format, a cookie is stored as one or more name-value pair that maybe encrypted. For privacy and security purpose. Cookies are also known as BAB cookies, which is used to using as the HTTP cookies or the browser cookies as. Let us see an example on the cookies and we will see that how we can create and saved our cookies. Here. You can see that I just defined functions. And here I should define that Maximum underscore page. Why does take the maximum page view right here? This is just because of where I am just using the maximum pageview, which means that I just said some of the portrayed here. Let suppose we have the limit of 11 right here. So this means that the maximum PSU I do right here, which is 11. Now here, I just create a variable message, which is the empty string right here. And now here I just said the cookie. If the cookie is not here, I just write if statement. If I meet is acid and here I have to write dollar sign underscore cookie as the function name. Okay? And here I just create page you. Okay, now here you see that for this, here I just said the cookie. So set cookies a function right here and here I just said a page view to it. And then here I rewrite that 1 and then write backslash right here. Okay, now here you will see that I have a great message is equal to. Here I just generate some kind of the message like Hi, and welcome to this website. Okay? And I just close this call right here. Now here I will go to the else condition right here. And the else condition here is here. You can see that this is the comma. And the else condition here is I will write the read page view here, which as you can see here, I just tried pageview. Visits, fascia have right integer type. Then here we WHO underscore cookie, sorry, this is dotted underscore cookie. And then here I have a page view right here. Then I just closest score right here. And after that I had to write, this is the page view right here. This is n equal to one. Okay? So this is just for reading the cookies right here. You can see that no hair, I would write that this is if statement again and if here page view, which is less than or equal to maximum, underscore page view, which as you can see here, this is a function that I just defined right here. So that will be set cookie right here. This is my function name. And then here I will insert this into the page view. And after that here you can see that I just defined as the valuable starting from the 0 right here. And then here I will write backslash. Okay? Now after that here I just create the message. The message is equal to S Pen. So this is this print function right here. And here I just write that this is the message which is gendered and when you are searching the page every next time, okay, here I will write dollar sign, sorry, the hash signature than present-day sign and d, which is for a string. Okay? Now here I will write that page view. Right? Now I will close this chord and then go to the else condition right here where I set the cookie right here. And then here I will write this page view. And after that here you can see that I illustrated comma and then after that I have who write cost needed when garden the timeit here. And then here I will define 3600, which is a time limit, right? Okay? Now here you can see that I have right backslash right here, and then it closes score right here. Now simply generate the message here when you are just removing the cookies right here, which is message. And then here I described that cookies are removed. Okay, now I disclose a score right here, ok, here you can see that now if you want to generate some kind of message or some kind of another message symbol you have write PHP. Then here you have the right. And then here, simply generate the message H here. Ok. Hopefully you understand now. And here I have to write there the edge x1. And then here I have Firstly the cookie right here. Okay? Now you can see that plus I am just expanding my code right here, that what exactly did right here. So this is my chord. And first is the first thing I just define the maximum. This means that the maximum time of view of the painting right here, which is 11. Then here I just create a message which is an empty string right here. And then here you can see that I just created if statement and if acid, which is getting the cookie and a cookie is getting from the page view right here, a big view here is my variable. Then here I just said the cookies on the page, which is starting from 1.00. Okay, and that will generate the message that hi, welcome to the website. So every next time when you are just searching the website you are data will be saved to that page. So that will easily give you the data of every next time right here. Now, for that heritage is clear. The integer variables right here. These are the cookie. And every next time, like one months time you are searching the page right here. And with the help of this variable rate heritage plus is equal to one. When you just save this page next time. So that will write one plus 12345 so that it goes like this, a statement. And same with the kids, like deputies are simply getting local piece n, the strings of that. So here I just underscore browsers. So here you can see their dharma page visit here is six time because I just already work on this cookies right here. So you can see here, now this Bowser is always see me also sitting middle cookies right here. You can see here, I just remove this and okay, and I refresh this. You can see here error in line number 13 right here. And here you can see their managers refresh. So here you can find an adder right here which is Set-Cookie. And here we have the three parameters. So, yes, so one right here. So this is a comma. Now I just run this court and refresh it. So you can see here, this is a time when I'm just searching my cookie RNNs asserting my page, and the cookie is saved right here. Okay? Now here when I just such it again, you can see here is a page visit. Second time. Same is the case like here. You can see that. And every 11 search you can see here after allele 11 search, my cookie will be removed. This is just because of the data will be loaded right here you can see here you can set your cookies limit as well. Hopefully you understand that how we can clear the cookies and how we can remove the cookies, and why we cleared the cookies in the PHP programming language or the web page. So that will simply storing our ad, as you can see here. If you find any the problem regarding to deselect her, please let me know. And thanks for watching this lecture.
55. PHP Session: Hey guys, welcome to this lecture. In this lecture we are going to talk about the sessions. The PHP programming language. Ascension is a mattered office touring the data using the global variables. So the browser can use it through the multiple web pages. I'm just telling you that some of the architecture of client and server side here you can see that this is server and client right here. Okay? When the client is requesting to the server, server Livy's bonds this request to the client ratio. In last lecture, you have seen that the cookies there, the cookies is as torque on the user systems, but the session is as tore the on the servers, we're the Datastore. So here in the cookies you can use or you can store this data. But instead of server, instead of session here you can use that a large amount of data as in constraints to the cookies, that data is not kept on the user system. The sessions variables contain the data involved the current users, and they are accessible. All pages contain in single or in a container, in a single web pages. The session data is not permanent, but you can load harmonic end-user data for the particular using the database. Let us see what is the sessions and how ve created. So here you can see that I'm just creating a PHP code right here. And then here I started session and session underscore star. The session underscore is start is a method or a function which is using is start a session right here. Now here, let's see. Here I'm just creating some of the global variable right here, which is a session and the session here is a global variable. Now here I just write this as the FirstName. And the firstname ij is equal to here. I just write that this is there. Suppose debit, debit right here, okay? Now here I just write underscore and then session, which is a global variable. And here you can see that on your screen is a global variable, okay? And here it is also the last name, okay, which is equal to here. I just write that this is David, John. Okay? The first name here is the debit and the second name here is the John. Ok. Now you can see that I just create the two sessions here and storing the data of the debit and the John right here. Now here, when I just run this in the browser. See here, my decisions are created right here. Here, this is a cookie, and you can see here I'm just using one cookie here on the local host. You can see here this is a cookie and then PHP session ID. So that will create one of the PHP session ID. Then I just start my sessions right here. Now here you will see that we are creating the sessions right here. You can also write a print statement with that. And with that, let's just see how here you can see that you can also write equal and some of the print statement. And if you want to add a new reserved right here that I create session, and then here I just close this ID. And this is the double quotation mark. You can see here. Hopefully you understand now. Now here when I just run this, so you can see I'm assertions is curated and the cookie is using right here. You can see here, and this is a new session ID. Okay? You can see here. And this is my sessions ID here, which is on localhost, and the name here is the HB sessions ID. Hopefully you understand now. Now here you will see that I just command this and session is tarred this two. Now here I'm just creating or I'm just getting the values of the variable with the help of sessions. How I'm just getting the values of the help obsession. So here you can see that I am just writing equals to admin at equal here is I just write that. This is firstname, okay? Now after the first name, I have x2 dot. And then door design is using for concatenations when you are adding two things together. So at that stage you can do the concatenation, ok. And here I just write the ID name, image is firstName. And you can see that this is my ID name and last name. And this is a bad use of the ID. So now here I'm just getting the venues of the ID right here. And then here I just write a BR tag and the closest tag right here. Now I just run this. So firstly, you can see that this is the name and the first name here is debit. Now I just go to the cookies and then check this id. So here you can see that. Okay, now here after this, I just go back and run it again here. And here you will see that I have to write the last name ID right here, and this is also the last name. I just get two values. What I just already created right here. No, I just run this course. So here you can see that this is the last image is the John Hope. So you understand now that how you can get your IDs with the help of the sessions right here. So as you can see here, that request to the server, which is saving my ID right here, which is a first name and last name. Then you can see here this server request, the server responds to my request right here. Now what is the role of the sessions? So session is creating the ID here, okay, which is a unique ID to the unique user. Okay? And then suddenly response to that unique ID right here. Hopefully you understand now that hall, this sessions work in a PHP and where does it all of the cookies. And what is the role of the sessions right here? So maintaining the sessions for all the server you are connecting to your user. Session will provide every users are unique ID. Hopefully you understand now if you find any of the problem regarding to the lecture, please let me know and thanks for watching this lecture.
56. PHP Date and Time: Hey guys, welcome to this lecture. In this lecture, I will show you how to display a clock, which is using the date and time functions, and that will get the local time of the client computer using PHP. Let us see how we do it and what is the date and time functions and what is the use of that? The Firstly, we have to use the date functions which is needed for MDD, the date and time and your chord. It is used to form at the timestamp, more readable basically into the landscape vectors in more places are. Okay. Then you can use PHP functions to make automatic update on the copyright date your websites as. Let us see how we do it. Very simple. Chord. When you are just writing the date and time, just create your variable. Did then here use the date functions. Then you are just using the date function right here. Firstly, you have to write d, then you have to write mn, and then you have a great year. And then here you can see that simply you have read equal and equal will be your variable right here, which is the date variable. Okay, now here you can see that when I just run this code right here into the browser so that we'll get today date right here. Hopefully you understand now that how you can get your data with the formatting of this slash right here. You can also create the formatting of that with the help of that scientists well, with the different depths formatting right here, and dot as well, you can simply replace with the help of this dot as here, you can see that that how you can get your time right here, sorry, a date right here into this code. Okay? Now here you will see that how we can get our time with the help of the time functions. He didn't see them. I hope right. Equal and heritage right. The time is, and then here I just tried door late functions and the date function here we created like Firstly, I have read hours than I have, right? And then here I have write essay. Okay? Now here you will see that when I just run the score right here. So you will get the time of the soul of the Arab right now. You can see here's 0, Salman, 3755 AM right here. How you can see here. Here you can see that firstly that we'll get the hour. Then here you can see that that will get. The format of that. And then after that here you can see that the country group. So here you can see that at is representing for our h here. Then here you can see there that we'll get three, Ivan get the minutes with the help of format. And then you can see here the minutes and you can see here, okay? Firstly that when 0.7, which is the hour, then here you can see that I is defined I, which is 37.55, which is using a minutes and the seconds as well. Then here I will get SE, okay, which is the second end emperor as well, which is an AM or PM. Ok. Hopefully you understand now. So now how you can get the time and the date hazard. So this is very basic thing. Now here, you can see here, know the most of the time means that like in modern time, how you can use, or how you can get the time zone of your website, and how you get the times on for your client as well. So this is the time zone function which is a default time zone underscore gat, the modern website use these types of functions. Let's suppose I strike America slash, sorry, this is America slash here. I just write New York. Hopefully you understand now that I'm just getting the time of New York ART right here. Now here you can see they're equal. And here he's died. The time is. And here I have write dough and then date here is same as of that date. Okay? Which will get, you can see here hour, minute, second, and then AM or PM. Hopefully you understand now. Now and I just run this code right here. And after this BR tag. So cold right. Now here, you can see that I just run this score. So you can see here the time here is 074043, right here. Ok. Here you can see after this time right here. You can also create some of the MK time matters. One of the more functions that you use or that you should learn to use to display the PHP date and time, which is MK time functions. So m two time functions is let suppose you have write X1 as the variable, ok? And here you have the variable as which is equal to m k time. And when you are just writing the MCO time right here. So firstly, you have read your hours. Let's suppose we have the 12 hour than 14 minutes. Then here we have 54 seconds. Then how you're suppose a month here is 03, then we have the day here is 25, and the year here is 2020. So this is just a format. You have write M catabolism where this is very complex and am not moving through that. In the modern life. And the modern website, The did default function and default time zone is using. And then you every symbol used this data. Hopefully you understand now. And if you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture.
57. PHP Filters: Hey guys, welcome to this lecture. In this lecture, we are going to talking involve the PHP filters. That what are the PHP filters and how we use them, how the different types of PHP filters. But here in this lecture, we are just focused on the sum of the PSP filters. Fear you have great filter list. Then you have sanitized data filter and you have write, validate integers value. So these are the some of the filters what we are working in this lecture. So firstly, the hard too focused on the filter, which is, you may say that this is just a filter list. How you can use the filter into your code. So here you have to write PHP code and then closest PHP code right here. Now Herr Einstein for each loop. And this is for each liberate here. I stayed filter underscore list right here. Okay? And here is right, Filter1 score list as the ID which is equal to and then greater than sign. And here I just write, this is filter. And filter here is also a medieval. So the PHP includes a basic. Or you may see that a built-in filter functionality that will allow to validate or synchronized data. You enter through the farms or anything like logging or any other things. It is extremely useful if you want to use a special characters as the text without triggering the court, which is a preventing the data insertions. Ok. This is just our filtering right here, and here it is equal. And the equal right here is firstly, write, let suppose I have cried at a Tang, which is order list here. And here I have to write that this is okay filter here is our variable, no hair. I have derived some of these string right here. And the string is, and then this is dart sign because it's a concatenation here and here it's died filter underscore ID. Okay? And then here I have derived that this is filter right here. Then here I have a red dot. And then I just close this LA tag right here. Why I just use a light? Heck, I will tell you in while running the program. Now you can see here my court is completely right here for the filter list right here. You can see here, I just used the alert Hague just because of these. Formatting. Now firstly you have to write, I just get all of these filters, what we are using in the PHP, which is an integer type, then that will show me the value seems that kids like Boolean floored validate underscore register, read expressions, then validate domain URL, email, and all of these filter what I'm using right here. Now here you can see that I'm just using some of the, another filter via you can validate your data as here, you can see that I'm just using the validate informations right here. Now here you can see in the browser, I just write a PHP code and inside the PHP core, frosty, I hug right? Or I have to get the variable right here. We're, I just write 20. Initially. I just define a variable which is a 20 right here, because I am just validating my integer values. Now Harris, Right? If, okay, and if filter underscore variable. And here I have to write, so this is variable. And here I can write that this is e is my variable here. And I have derived this as a filter underscore here. I have to validate the integer right here. So this is validate. And validate Here is the integer. And you can see here I just find this global or even radio. Now closest chord and then started the statement. Now here equal and equal is done. And then here I am, right, some of the bold text right here, and here I am getting this variable and then close this tag right here, which is a board. So here I started, this is a valid into your right and it's closest score right here. Now this is the if statement. And if I go to the else statement and here I just write equal and equal here is. Then here I just cried these statement and here I have to write that this is E, which is the integer type. And then here I have two closest score right here. Okay? And here we have a closest. Now offer that here, I decide that this is not a valid integer. And I just close this chord right here. Hopefully you understand now. Now here when I just underscore. So you will see that the 20 is the valid into u, y. This here you can see that in this example I just said the variable a, which is started as 20. Okay? So that will display that this integer here is 20 and which is the valid data right here. Hopefully you understand now that how we can validate our data into the PHP filters right here. Okay? So these are the kinds of filters. Filters, as you can see here, when you are just sanitizing or validate you or user input in a PHP. So you have to use the filters. And filter is just, you can see that this is the filter and filter underscore variable. So this is a, you have to use your filter fastly that will get you a variables, then you are filters and then some of the options you have, rightly, you can see here that we'll get the filter and sorry the variable. Then this is my filter, which is a very but validity. In tier two, I just validate my this integer 28 here. Okay? So here you can see that we have to use two pedometers right here. I just write the variables and the filters. Filters only validate my data. If you find any problem regarding to this lecture, in the filter lecture, please let me know. And thanks for watching this lecture.
58. Custom Error Handling: Hey guys, welcome to this lecture. In this lecture we are going to be talking ball the error handling in PHP. As you know that the PHP or any obligations if it is making it ESP, if it is making you jangle, NodeJS or PHP, anywhere you are applications is don't always go to the plan. That must be Edwards, that the user will continuously firing the vague trigger, the adder within your applications and how you record a certain. Okay. Php used for web development as you know. And enter heading in the PAC is more similar to the human say that edit handling in all programming languages, the default error handling in PHP will give the file name, line numbers, and Edward height via you have red. We already studied about this dive function. Okay? The first thing you have to handle your error is the dye function. And that is you have to clear the Customs error handling with the help of set attr underscore handler function. We already studied about this diameter. So here we used die except means. Create our own custom editor editor handling with the help of set edit handler. Here you can see that I just created. And here I just closest PHP tag right here. Now here I will create a function here. And the function here is the error. Okay? Then here I just create one another function, a variable name, which is error number. And then here I have write the error message. So two variables we're creating right here with the name of etre number n, the message eta right here. So now here I'm just creating the EDR constant VCE, print the message to the user. How? Here you can see that I helped write equal VT is painting that error. That error underscore number. Okay? And then close this code right here. Now here I will write error message, okay? Here you can see that I just get two variables right here. This is the adder number and the l here. Now here you can see that I have right now, I would like to equal plus the average slash n for the single end Drake. And here I just write this here. Closest chord. And I just use the diametric. So diameter is then enter a coupon occur. So script has to be top right here with the help of this diameter. Now here you will see that I have said underscore error handler images. You know, wherever I am just using the set error handling, this is for creating the enter function. We just need to set the custom error handler because in the normal EPSP handles it. But if you're doing customer errors, you have to use set error handler right here. And here. I will write that here, which is my a, which is here. This is the function name. You can see that this is the function of n, which is OK. So here I just call this function, namely the set error handler. Now variable E and E, which is equal to 20. And then here I just write the variable b and the b which is equal to 0. Now here I just print the statement. The statement here is lawless and wild bee, okay? And I'll just close this four right here. So as you know, this movie generated an error because here you have to write P and M 0 to ledger saying the output right here. So here you can see that this is the adder CPU, which is divided by 0 script. And the script is right here. Here you can see that I have to write this diameter here or these functions here. I just tell you that event, this is script is running right here. So after stopping script right here, so this function will be executed, okay, or after generating the adder. So this strip will be working off your programs. Do next. Hopefully you understand now that how we can create a customer, it is always tied to adder handling using the custom error handler because it will show more specified message according to the user that can be helpful to the user. If the error is not handled using custom Error Handling than occurred, then out trip will be held by default. But if it is handled user using custom error handling, that it can be continuous, continuous trip after displaying the error message. Helps you understand if you find any of the problem regarding these lecture, please let me know. And thanks for watching this lecture.
59. Exceptions Handling: Hey guys, welcome to this lecture. In this lecture we are going to talk about the exception handling in PHP programming language. Then PHP five was released. It enter cooperated a Bayesian model to catch adders and exception handling. Exception handling errors that we create in a PHP, which we'll try. Catch block is almost the same as exception handling in other programming language. An exception is a signal that's indicates some sort of exceptional events are added. Dead occurs exception can be caused due to the various reasons. For example, some of the databases interconnectivity or you may use Fall database connection died here. Or some of you are tuning in the field right here, or some of your file is not already exists on your servers. Here. A term use or the keyword for the exception handling, which is try, throw and catch. Try blocks contain the block of code that may be that may potentially throw an exception all of the court within that block, and this is executed until the exception is potentially torn. The keyword is used to signal the occurrence of the PHP exceptions. And the PHP runtime will then tried to find a catch statements you handled exception right here. Then the catch, this blog, the catch block. Only if the exceptions occur within the block. And the chord visiting your catch statements must handle exceptions within the exceptions. Now here you can see that this is a person who hold a cricket ball or who hold, hold any of the bar, rate him. If he throw this exception, exceptions. When another person or if he does bar to one another person and this person will catch the ball. This means that this person who try to throw the ball to the another person, and this is cash. Does born succeed with the kids like this? According example as well. This is a real life example of the exception handling. Here you will see that how we can create this exception handling in the coding sense. Here you can see that firstly, I had to write functions. And the function here is divide function. And here I have arrived this divide. And here I have read this is the variable d y right here. And then here I have right there, this is OK. Here. I just run one another's. I just run the core of that here. Here I just write if divider, divider, which is equal, equal to 0, then you have to throw or you have good troll, the new exception right here. Okay? This means that if D is equal to 0, to simply throw the exception which is division by 0. This means that this expression is working clearly right here. If this is not working clearly, so what you will do, so here you have great or heavier. Here you have to get the quotient of that is equal to here inside. This is divider or here you have right do union right here, which is divided by here you have right, divided by the divisor. Then here I have to write equal. And then here you can see that this is right here. And then here I have to write that this is paragraph tag. And then here I have to write that this is deviating and dividend divided by hair and grind it divided by dy. Okay? And which is equal to here and I have read and this is equal to cushion. And then here I have two closest code right here. Okay? So this is just a logic what I'm disputing right here for the eco statement. Okay. Now her offer best. Firstly, I had to throw this exception. This means that you are cord is working completely right? And this mentor, these exceptions do. Another man. Now here I will use Tableau. So tie here is, I just said some of these terms right here, where I just write that this is division. And the division here is let suppose this is ten. So this is division. And the division here is my function name in here, which is a ten. And then here I am Greg, this is u i by three. Ok. Now hair after that. You can see here that that will divided by minus four. And here I have to write down this is 40. Then here that I just created 100 stared me right here where you can set. And here I have to write down this is divided by two, that's 22. I resume. So these are some of these statements are diamond scooting right here. So here, if the exception is thrown, so I have to write the eco statement right here, where I have to write that this is p. And then here it is right on divisions perform successfully if all of these RAM successfully. So that error, that exception will be generated right here. And here I have two closest score. Now after that here I am just using catch Steadman. So casual firstly, that will pad the exception. An exception here is a keyword. And then here I have to write the variable here for the exception. Now here I have read equal and the cohere is paragraph tag and their cats and their whole carriage. The exception, right? If the exception is, if the exception is false, so that cache block will catch all of the true and the false exceptions rate. Here. Hopefully you understand now, now harris trade, he returned in San and that will get the message right here. And here I have to concatenate. And here I have organic engineered, better Gaddafi. And closes score right here. Hopefully you are just handle. Now here. I just continue some of the exceptions again and here I just stayed high exception. Okay? Now here you can see that I just run this call right now. And you will see there firstly that really the answer of course exception. Then here you can see that this is the end of that exception. I was declaring here in the tie blog, then this is divided by 0. So here you can see that that will catch the exception which is divided by 0. What am just defining right here, you can see here, this is a logic. What is a match right here? Now here, you can see I just use three keywords right here, which is a title and catch statements. So here you can see that firstly, I'd read DVD functions, which is for the wave functions on, in this example you can see here that will check the divisor which is equal to 0 or not if it is in exceptions and torn up PHP chord, which is a toy statements here. Otherwise, this functions perform that division using the galas number and the display reserves. Here. Okay, after that here you can see that I just used divisions function, DVD function, which is division function, which is car within the try block. You can see here I'm just calling the try block and provide some of the values to it. And after that here you can see that I'm just stopping some of the exceptions right here. Now here you can see that the type blocks, sorry, the catch blocks. So cache blocks typically k the exceptions which is torn to it within the time blocks. And that will create an object word. And that will continue the exception informations and the adder message from this object can we retrieve using the exceptions, which is the get message here. And that even short as the message idea in Buddha goes are you can see here that the cash exception, you can see this message is shown to meet with the exception where the IJ is already fine. Hopefully you understand that how we use exceptional handling, exception handling in the PHP programming language. If we find any the problem regarding this lecture, please let me know and thanks for watching this lecture.
60. PHP Open File: Hey guys, welcome to this lecture. In this lecture we are going to talk about the file systems in the PHP programming language. But this lecture is totally focused on how you can open your file with the help of VASP code and the file system. Since PHP is a server programming language. And it allows you to work with the files and dictionaries, which is TOR on the webserver as well. In this lecture that you are going to learn about that, how you can open your file with the help of BSP. A very best matter which is using for opening the file system is PHP, which is f open method. This is fopen metal dysfunctions gave you more options that such an setting, whether the file is for reading on the or for writing to us as well. Here legacy and accordingly example that I'm just creating some of the variable right here, which is a pile. And the pile here which is equal to, IS right, that this is the file which is open right here. Okay? The function right here. This is here, you can write you a variable, and then this is the f function. Ok? Here you can see that I'm just creating our TXT dot TXT text dot TXT files, which is a text file here. And I just want to open this file into this functions. As you see here, I just write dx, dy dot TXT, music tension of the file. This is the name of the pile, and here you will read the extension of the pile. Now after that here I'm just creating comma. And now here I have grade. If you want, write r or anything. So this is just a mode right here. This is the file name and the mode right here. Hopefully you understand now. Now here you will see that I have right? Let suppose I have write equal, sorry, firstly, I have to closest score. And then here I can write this is equal and equal. Here is phi. Ok? Now after that, here, I'm just running this file into the Bowser right now here, but I just run this core. So you can see here, the resource ID here is three and that will in getting the resources of that file here is right here, okay? Now here you will see that. Now after that, this file is opening Sumi, okay? Now here, you will see that often that here I am just removing this equal right here. And now and is doing the file handling. Do you guys, I started that. This is the text or the armoured inheritance, right? Simply write or diamond. Diamond generate an adder to you that file. The adder here is file cannot open. Okay? And up and down here I'm illustrating if variable file is not. Open. So here, simply return the error right here, which is equal. And then here I would write File Open successfully if the file is open. So that will generate an option or the print statement like this. And if file is not open, so that will show me the error of that has been. Okay here you will see no. But I just go to the browser, rephrase this. So here you can see that this is showing me that you have file is opened here successfully. Okay? Why? My first certain show me that you are using the IDE source number two, right? So then you are not creating the files of options. A dad does not actually read the content of the files. And that was symbolic names. Like a resource. That how much time you are searching this, right, ok. Here you can see that I'm just simply write that this file is successfully open right here. And after that here you can see that when another thing you have to use right here, firstly, the heroku, open our file right here, okay? And you can also use whenever their functions, which is to close your file as well. So close file here is the variable file, which is getting this ready well into the this f cross function, ok. Here you can see that when I just run this, so the score is then completely posse that will open the file. And after that, that will close the file. Hope. See you understand now that here you can see that I think you are a little bit confused about this motor. So this is using for opens and read the file on the okay, here on the place of that, if you want to write r plus, which is using for open the file for reading and writing. Here, this r is using port did file only. But here if you want to read and write files as in blood, I r, plus. If you want to only write the file to simply write, simply write in the place of R, which is W. Okay? And if you want to append the files employee, you have to write it right here. Hopefully you are concept is much clearer about that. How you can open the file and how you can close the file right here. Okay? If you want to write some of the things right here that the file closing error is file cruising is also generate some of the, I'll put the u. So here you have to write that. And then error, which is file does not exist. That will generate an error when the file is does not exist if we deleted the file from here. So that will generate the error like this. Ok? Hopefully you understand now, if you find any of the problem regarding his lecture, please let me know and thanks for watching this lecture.
61. PHP Write,Overwriting & Append File: Hey guys, welcome to this lecture. In this lecture we are going to talk about the right override and append file in PHP. The Firstly, we have seen that how you can write your file in existing file system legislature here, I have derived that a variable phi, which is equal to, firstly, I have group coupon, this existing file, which is text dot TXT right here. Here, the same function in our last lecture, what we used, which is open function right here. And Firstly, we have the right text dot TXT file. Then in last lecture, I will tell you about that when you are writing your file only. So you have to use your W mode right here. And I just close this file right here. Now here I am write f, right? So f right is just for, you can see that this is for writing something into your file. So here I just write, then this is the variable file here. And then here I said that this is writing the file. Any texts if you want to add into your file. So you have to write. Now here you can also write some of the editor lens to your file as well. So you can write again. So here it is right in the file where I just write it. This is another line, okay? And here I just close this plan here. Now here I have derived this close matter. And the close method here is to closing the file, their VR edited. Now here I have to generate something into the file, which is file has been written successfully. Ok, here you can see them. And then I disclosed score right here. Now here I just run this into the browser. So you can see here the Fine has need written successfully. So here I have read that. Suppose that this file has been not needed. Okay, let me just open this file right here. So you can see here this is the writing in the file, and this is what we write here. You can see that hopefully you understand now that how you can dry it in your file. So you can also use that overwrite and into a new file as well with the same this procedure. There is no change in that. They're suppose here if you want to change some things. So legacy here you can edit this line. So every method is seen, okay, for overwriting asthma. Now here you will see that how we can upend our file. So for appending the file, you can impend data and with a file by using a method, okay, which is the mode. And this mode is opened into the file open functions. Let just see the example of that here, how we can do it or how we can append that to hear inside a mirror, we append this to edges, right? That this is append mode. Okay? These are the parallel mode. And here I'm Greg, this is another append mode. Okay? And here have read and this is a pen successfully. Now here I just go to the browser and refresh this. So here you can see that file has been appended successfully. And here I have to open this. So you can see here this file as this file. This is an underlined. Now here you can see that I just append this more. And this is the another dependent line. Hopefully you understand now that how you can impair your file in the PHP, how you can write in or write your file in the PHP. If you find any of the problem regarding the detector, please let me know and thanks for watching this lecture.
62. PHP Delete File: Hey guys, welcome to this lecture. In this lecture we are going to talking about that, how you can delete your fire from PHP. There isn't a matter, which is the unlink method, which is for deleting some of the data or some of the files from a PHP. Legends see how we can do it. Here. I just write PHP code and inspect this PHP code. Here, I have to write that. This is the variable file and the final is equal to Harris, Right? This is unlink. So as I just told you that the annealing is a function which is using for delete the file. Here illustrate test.txt, and this is the extension and the name of the planet. No more, you have write with it here I just write if statements. So if file and the file here will be like and here I can write that a message which is file is deleted. Ok? Now here I will go to the else statement, and here is your file not deleted. Ok, here you can see that. So when I run this code into the browser which enter delete file. So here you can see that the file is deleted right here, okay? When I just go to the coding section and here, if I just to refresh this. So firstly, I will find in this file into the directory, okay? So here you can see that this is a directorate here and working with a PHP file as you can see here. And now, when I just searched this into the directory, there is no existing file. Hopefully you understand now that how you can delete your file if you replace this. So maybe from hair to your file is also means deleted from here as you can see here. Okay? Hopefully you understand that how you can delete your file from PHP if you find any of the problem regarding to this lecture that how you can delete your files from the PHP. So you can ask any question right here. Please let me know and thanks for watching this lecture.
63. PHP File Upload: Hey guys, welcome to this lecture. In this lecture we are going to talking about that, how you can download some of the existing file, what is already saved into the servers. Let's just see how we do downloaded. There are the two ways that you can download your files from your server or from your website. First one is here. I will tell you about that. Simply provide the URL link of that file. What is, what the file you want to download via? The link is very simple. Let us suppose I have right there, this is the HTML file, and here I have to write PHP. Then here you have right incur file, and here you have right HREF. Here you will provide the link of that file and simply close that file. This is the first way, okay? You have to download your existing plan, but this means this is an HTML based and you had to bribe the link to that fight only. Here, I will tell you about that, that how you can provide the URL from the website, or how you can download the existing file or is already saved into the your means folder or into your servers and that you want to download legacy. I'm just creating a file or text right here, and I just want to download this file right here. Now Harris's create a variable phi, which is equal to here. I get the file first where I had right, that this is the file.txt. Okay. Closest court right. Now after that here I just write this as the files and the files which is equal to her. I've learned here I have to write that the file is in working with PHP file. Okay? And slash here, I will give it the name of that variable, which is the file. Here. You can see that firstly, I have to give it the link of that folder. And then here I have to get this variable. We're, I just provide the link in the name of this file right here. Okay. Here you can see that after that, I have right, that this is, this is file. And here I have to provide the type of the file right here, where I just said that this is the file or the file type. And here I just said that this is the file type, which is the function right here, okay? That will get the file type right here. Now here IS right. This is file name, which is the variable right here. And this is the variable right here, which is equal to here. I said that The base Nin, base name here is the functional function, and here I have to get the function of the file right here, sorry, the function of the files radio, closest score right here. Now here, if you want to give it the URL link, means this is the file venue getting the, or this is the chord when you are getting the file from the folder. If you want to get the file from the URL. So here you have read file or URL. This is the variable here which is equal to here. You have to provide the URL of your file right here, okay? And then closes score right here. Then after that, here, you will write these things if you are writing or if you are getting the URL, or if you are getting the file from the folder. So you have to write code, which is firstly you have read header. Then here I just write that this is content and the content here is the Tiber. And the return type here is I will concatenate plus the file. And the file here is t, okay, which is my this variable. So firstly, I have to get the file type right here. Now here, I helped write that this is a header and header will get the current content of here I just write descriptions, ok, so I just started DIS for the description right here. And here I helped write that this is our attachment of fine, here is file name. Okay? Now here, which is equal to, I, just write that, that will get the file name right here. My diff variable. Now add the last hair. I decide this is the data file and which will get the file right here, which is my variable here. So files here, and then close the score ratio. Okay? So this is how you can download your files from your directory here. Okay? Hopefully you understand now. Now I'm just running this core right here. So you can see here we have an editing Lanham or 19, we're, yes. I just didn't provide link of that directory right here. You can see that I just simply provide the folder name. And then simply I have read the filing. Okay. If you want to get the directory of that. So simply you have to, you have to search for. And here you can see that we have to get the link of that, fine. But here you can see the options or the adder right here, which is a read file working with PHP file, filer text, which is failed to open the extreme right here, just because of no such file or directory which is saved here in this file. So I just tell you that when you are just working with the online PHP files. So here you need to add the link of that. Just because of here you can see that I am just writing the pieces between these tags. And I just, I just held not unvalid link of that. If you are providing the valid link into that file or that place, your file will be working right here. When another way that you have great or you have to get your files like here. So simply you have to write, let suppose that firstly you have to create your file variable. Then here you have right, let suppose a base name, okay, and the place of debt. And then here you will provide the link up there. This is one other way you have, Right? But both of these are seemed as because of headers and read files are saved. Yes. Okay. So these are the two functions, which is the header function and file function. There you can download your files with the help of that. Hopefully you understand though, and this is the very simplest way that you have to download your files like that. Simply put your this link on the place of these Alcorn and then discord is same right here. Okay. Hopefully you're understanding that how you can, how you can download your files in the PHP. If you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture.
64. PHP Download File: Hey guys, welcome to this lecture. And in this lecture we are going to talk about that, how you can upload your files into your servers or anything. For that purpose. Firstly, you have to work with two files. Front end, what I'm including here in the HTML and the backhand which is created in the PHP. Let just see here, I have to create the form. And the form here is plus v. I have to provide the action. The action here is ice, right? That this is File Upload. This means that I'm just getting the link of that. And then I just uploaded into the file.js file upload our PHP, and then set the post method. Now, the encryptions is the very important part right here. Because when you are just encrypt your data, so that will be uploaded into the egg encrypt form that no one will be decrypt and download your code if you are running this in the plain text. So the plain text will be uploading to your server. So there will be some of the security leak is eval. So here I just said that this is a multi-part form data right here, and I just close this form right here. Please. Applaud. And the text here is please upload file. Okay, after that harem, the streaking. So here I just need to add the input. And the input here is the type of facility I helped to create the file. Just because of, I am just uploading the file right here and here it is right that this is the file upload. Ok, and this is File Upload right here. And after that, I just closes code right here. Okay? So this is a first thing what I am creating the file upload rate here. This is, you see, you can see that looked like this. Where you can see that choose your file. Hopefully you understand now that you can upload your file with the help of HTML. So this is just an HTML. You can choose your file as you can see on your normal website. Then here you can see that IS right, that this is submit. Submit is a name and the, and the type here is the Submit button. Okay? And that will get the value of, you can see here applaud. You may say that the upload TXT file, upload text. Okay? That will only get the value of upload text right here. Hopefully you understand now. No hair. After that, you can see. I just go to the backend file. And here I have read the PHP closest PhD directory right here. Now here, I have read that. Firstly, I have read pot. Pot is a variable rate here. And you have to simply provide the pod that we're, you want to upload this file. So I just said any of the pod right here. Okay. We're, I'm just copying this part. And the part here it sees them as trade-offs in PHP course. Okay? Now closest chord right here. Now here I have to write that this is a pot and the particle is equal to here I decided that dollar sign. And here it is, right that this is the part. And the part will be the base name right here. And here I have read the dollar sign underscore files. Okay? Firstly, I have copied the file name right here. Here. You can see that the name here is file upload. So I'm just pasting this name into that directory. Okay? And then here I said that this was the name of that. And then closest quarter right here. No quotations mark. Okay. Now after that I have right there, if that will move underscored upload file. So here you have right, file is a global variable. And then here you will get that this is the file upload rate here. Okay? Then here you have right that there, this is M underscore name, which is a temporary name. And then here I have to write that this is enough. This is in the file right here. Okay, sorry, this is in the pot part is my variable here, okay? And then here I will run this work. This move upload file is a functions here to moving the files upload rate here if the file is successfully moved, so air that will generate and generate and message to the users that successfully file uploaded. Okay? And then close the score right here. If this file is not successfully uploaded right here, so simply twisted many cohere is, sorry, file is uploaded. Okay. Please try again. As you can see here, we are just creating a real life examples. Ok? There. Firstly, we are creating the forms, okay? And then here we are creating the backend files via we just give it the address of that. Then we will get the base part right here via this file will be uploaded. And this is getting this file name from this form. And then here this is a name similar case like if the file is moved so that we'll get the name, then defeat a temporary name here, then that will get this part right here and successfully generated an error. And if it is not uploading dyed hair too, simply. There have been gender it and add it right here, which is a file is not uploaded and please try again. So when I just run this code right here, so you can see here we are. I will find Applause Text option and choose your file if you wanted to upload the texts, to simply upload it right here, and if you want to upload the image to simply avoided damage right here. So managers choose a file right here with TXT dot TXT. And I just applaud this text right here. So you can see here that moving file upload then c. So there is directory as the failed right here and no such and directly, which is, let's just give it one other directory right here. So you can see that here. I just need to add the C folder on me. Okay? Here you can see there. So that was the C directory only. And here, yes. Okay, it's plan now. So c And yes, okay. Now harmonized run this again and continue. So you can see here that failed to open. This seems permissions deny in the c file. So we have an error in c file solars, you see in the file right here. So I run it again. So fail to open the stream Resource Center drives off. See? He huddles them working directly in the line number 12 right here. And the file is moving to the upload. And here we have the pod, where we have the pod is d. And so this is showing the error just because of here you can see that I didn't have any directory. We just saved the file just because of this misunderstanding mode that now here, when I just heard and discord. And you can see her getting this file again and applaud this text. So here, sorry for that. Firstly, I helped to create this directory as E, then run in continuous or here you can see that successfully pile will be up. Here. Helps you understand now why it is denial and denying the permissions at the sea when I just to want to save this file into the directory. This is just because of eyes just denied the excess of this direction. There is no file will be saved at the directory of C5a here, okay? Not in the folder, just in the C directory. Again, hopefully you understand now that how we can upload our file into that if you are working with an online server. So there will be the links, connections right there. And we are working with the local host, okay? We are creating our locals files right here and we are connecting to that with the locals only if you are working like the online and video websites. So there will be no areas of the connections idea. Only provide the link of your folder where you want to save your data. And then simply at the place of that part, you have to provide the part of that data only. Don't worry about that the concept is seen anymore. So hopefully you understand now if you find any problem regarding to the lecture, please let me know. And thanks for watching this lecture.
65. File Size: Hey guys, welcome to this lecture. In this lecture, we are going to learn about that, how you can get the time of your file with the help of PHP. Very simple and very prominent way that you have to get or you have to check the size of your file in PHP. So that is very simple. Here, three lines of code only you have write. Firstly, you have the right file and the file which is equal to here, you will provide the name of the file right here it is. Here. File dot txt, closest score right here, that heritage, right, that, that is the file size right here. And the size of the file here is one function which is using to get the file size, which is file size right here, ok. Here you can see that I have to write that this is getting the name of that variable where this file is stored and add the last if you wanted to write very well DOM, so that will simply provide you that digital size. And if you write equal right here, so here you can write that the size of file is, and then here you will get the file size right here, okay, into the bytes. And then close the score right here. Now here, I will learn this code right here, where this is in the browser. So here you can see that the size of the file here is 0 bytes. Just because of here, you can see that this is an empty file right here and no taxes involved right here, okay. Here, I just copy and pasted the text, save this file, run to the browser. So you can see here we have 24 bytes of a file is stored into that directory right here. So you can see that how we get the size of that file as well with the help of file size method. Hopefully you understand now if you find any problem regarding to this lecture, please let me know and thanks for watching this lecture.
66. PHP Create Classes and Object Together: Hey guys and welcome to this lecture. In this lecture we are going to talking about the classes and the object concept in the PHP programming language. C class. They're objects one by one. I will show you the diagonal concept of the classes and the object as well. Before starting the classes, we just need to understand that what are the classes and the objects. So plus, the programmers defines the data types which include local function as well as the local data you can link. Or you can think all the classes as the template for making many instance of some kinds of classes and the objects. The classes and the objects are the basic concepts of object oriented programming, which will involve it all their real-life entries for real life into these. And the class is a user-defined blueprint or the prototypes from which the object is created. And it is represents the set of properties or the methods that are common in objects of one type. Let us see that. How the class right here, inside the class, how the lotto nucleotides, what are integers? Then you have to write a string which is name. Then you have right, is trained, which is let suppose deleting, okay. Then you have to bring all of these inputs, all of these entries. Then you have read inputs and outputs as well, which is available inside the class. But you have when you Abu steadies the object. So there are the different attributes that are involved. Here. You have to break the age of that late age, which is equal to 15, then we have to provide the name of the dead string. Let suppose there is a name which is wall or anything, and the greeting here as well. Okay? And with the help of methods, so you have to get these prints, inputs and output value right here. Okay? Here inside the objects, you have to break the variables. You have to write the procedures as well inside the methods and attributes. Hopefully you understand that what are the objects and the classes right here. Let's suppose the entire class, which is don't obscure, understandable or VHA, let suppose the entire clause, which is car. Okay? So this dog and the class name here is the, sorry, this dog and the car name here is the class. Let suppose you have some kinds of data members. Let suppose you have the dog is b, then size of the dog, and then each of the dog. Okay, so these are the data members of their glasses. And if the dog is IID, then Dog is sleep, then Dog is run. So these are the methods of that, DO that class, okay? Siemens, a case like here, you can see that the car, so car is the class name here, then the car color. Okay. Then the car is the model of the car. The car like model of the car and then the doors of the car. Okay. Then you had to type up the class USA that these olive determined wears off that plusses eight here. Hopefully you understand now that how we get the class and what is the object and the data members of the class. Now here I will tell you the advantages of the class in PHP. So class providing easy to, easy way to keep the data members and the methods together in one place, which help in keeping the program more organized. Plus, which is using, also provides another function of that object-oriented programming. That is, inheritance. Classes also help in writing and all characters. Using classes, you have to grow it. The ability to leave the court v6 make the program more efficient. And you can grouping the related function that bet in the procedure language if you are creating some of the functionality. So if you wanted this continuity again, so you can entirely right your court. But here the scenes are changed in the object oriented programming, you can simply create a class of flexible dog and simply all of the attributes defining the class and one by one coordinate. Ok. Now you can see that how we can create the classes concept in PHP plus Lee, very simple. I have read clause, Visa, Class of dog right here. Representation of the class is simply a class is a keyword and dog is the name of the class. Ok, here you can see that insight that you will write the property of that. At this stage, I'm not adding any of the property of that right here. Just make your concept right here. Know every class I have an object. Here. I just create OBJ, which is equal to new, and the new hair is dog. Okay? And then after that here, closest score. Then here I just write a variable which is the DOM or sorry variable. Underscore a dummy variable here. And here, I will call this object right here. Okay? Now after that, you can see here I have to make the class and then create the object of that class. Then Object is an individual instance of the data structures which is defined by the cloth. You can define a class once and then make many object of that class, which is known as instance. Hope so you understand now. Now here you will see that. Here I'm just running the complete example of that, the dog here. Then I am just defining the properties of that. So firstly, I have write a public keyword. So public keywords to make this variable public, which is accessed inside the class and outside the class as well. Here I just write the name. So Dogme in here. Then here I have red public, and the public here is dog. And the bleed here is also a variable here. Okay? Now after that here I'm striking that a public. The public here is the dog collar. She attributes what I am just defining ratio three properties were dam is declining rate here for the dog name though, color and adult read. Okay. Now here you will see that after this, inside this class, I have write a function. The function here is set name function, okay? Or here i sorry, this is setName function. We're, I just said the name of that. Inside the name. I have to use one function name, which is some images. This, you will learn about this in next upcoming lecture because on this keyword, there is a separate lecture we're demonstrating right here. So no need to worry about that. Simply make you a concept on the classes and objects like here. Here I just get the name and then here I just write, this is the name. You can see here I'm setting the functions for the getName right here. And then after that here you can see that I just tried here. That cause the I have to set the name of that. So you can see here that the name here is suppose the ANY name abc. So I don't know the dog's name right here. So here is a new, and the new here is the dog keyword. And the dog is my class name right here. Okay? And then here, after that I will write x, y zed is equal to hedge their new and a dog here. Okay? Then here you can see that ABC vir, I will set the name of that and the name of their hair is ABC. And then close the score right here. Then here I have right, x-y-z said the name of the dog and which is XYZ. Okay? Now after that here you can see that I have already equal. And the equal here is ABC. And ABC here is get the name right? Okay? Now, here you will see that now I have to write equal. And the equal here is I have to write it as the BR tag right here. And this is the beard hang and then close this tag right here. Now harris Red equal. And here I have to write that this is x, y, z, and the x, y, z, and we get the name of that. Okay. Now here you will see that I just simply create properties. But I'm just getting one of that because I just need one of that property. We are we are getting only the name of the dog if you wanted to get rid of that color of debt, simply applied that concept right here. Okay? Now here you will see that understanding the score right here. So we have an error in line number 23. We have ABC. Abc. Sorry, here I write equal. And then AVC, where I will get this name of that. The air you can finding here which is get underscore name just because of where we need to set Gu functions for getting and setting the name right here. So here I have right. When other function where I have read this is get underscore name. And then here I have read that, that will return the value of this keyword, which is name right here. Okay? Now here, discord is working fine. Where I will write, where I will get the name of that and the name of that function here. And after that I will return as the name right here. And here we have yes. Okay. Now it's fine. And yes, we have an OH, right here. We get the name. Okay. Now I'm just running the score right now under the browser. So you can see here, we, I just get the value and the name of dads, ABC. And next one is that emerged Harris's the names of the dough right here. Hopefully you understand now that how we can create that. Know one another example where I'm skating, do you guys these are there. Suppose the how the PHP code right here. And then here, I will write the classes and object concept right here. Husni, I'm just using require. Require here is Nick, suppose I'm just creating or undoes adding one of the class. Do you guys know? The class here is suppose V, how some kinds of already saved class right here. There is, let suppose are working file or let suppose it's the class of PHP. So this is up to you. So I think so in my concept, maybe this quarter will be or this concept will be much difficult to you. So here I will write or read one or one of the energetic concept for you to make your concept much clear. So this is an example of the classes and the object in the PHP if you find any of the problem regarding this lecture be x_k. No, and thanks for watching this lecture.
67. PHP $this Keyword: Hey guys, welcome to this lecture. And in this lecture we are going to talk about the keywords in PHP programming language. That what is the, this variable and why we use them. Php keywords that efforts a non-static member of the class, which represents in the class instance clear here. So the venue or the arguments of the class members will be buried. The based on the value of wij is the instance of the class is cleared you firstly, you can see that here undisputed a class. And a class here is let suppose car. Okay? Then here I just write public. And the public care is usaid and the color of the car right here, okay. Is equal to Harris, right? The color of the car is white. Now, here I have to write that this is the variable car. And the car which is equal to mu and nu here is caught right here. Okay? Now here you can see that that plus levy how to create the variable, sorry, a class car. And then here I'm disputing the object goo that class, which is the object car, the new car right here. And this is the public. Public is a keyword. So as you can see here, they are creating the class and the object right here. Okay? So this keyword is a pseudo variable, which is also using as the reserved keyword, which is only available inside the method. And it refers to the object of the current method. So here in this court, as you can see that that will be used this keyword. As I just told you, that this keyword is used only in the function. Okay, now here you can see that I have read public. And public here is the function. And the function here is let suppose I am inserting the data right here, and the data here, it's color of the car. Okay. And okay, only the color of the car? Because we didn't add any of the instance right here. Now here you can see that at this place I'm using. Then here I will set the color on the color here and which is equal to here. I say this is the color. So you can see here. So outside the class, we directly change the value of the property of the outside of the class right here, which is the white and inside the class V hybrid gene. The value of that with the help of this keyword, hope. See you understand now that how we can gene the value outside the class and inside the function, okay, or inside the method. Here. After this, I have to write public. And the public here is the function. And the function here is, you may say that a day Tom, this is any function name you can write here or here I have grade that this in the function image is the CoreData, or this is up to you. You can write any of the Ting right here, okay. Now here you can see that after that, after this here I just write that this is equal. This is the function, ok? Now Heritage strategies is equal and the equal here is I hook right there, the color of the car. And here I can write this is colleague breakers. Then use this keyword and get the color of the car right here. To get the color of the car right here. And I'm just positioning it here. You can see now after that, here you can see that and Harris red color of the car. And then here I write or hair color of the car is. And after that hair eyes right here, I just close this code right here. So you can see here we are just creating firstly, the functions of the data and then set the data of that color, which is white right here, with the help of this keyword. Okay? So as you know that this is the, this keyword is using or is used to simply something you want to change inside the function. So at that case, you have to use this function and this function is referred to the object army. Again. Hopefully you understand now that how we can create a dysfunction right here. Hopefully you understand now. So if you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture.
68. Classes and object concept part 2: Hey guys, welcome to this lecture. And in this second lecture of the classes and the objects, where we are as telling about the classes and the objects more and I will show you the more examples on the classes and the objects. We are re firstly make the classes. Then we make the objects of it. Then matters in the properties as how to create the class. In order to create the class V group, the court that's handled a certain topic into into one place. For example, we can group all of the calls that are handled the users of uses of a blogging to the class. And all of the code that is involved with our publications of the posts in the blog into second class and all the code that is devoted to components into the third glass. Ok. Here. You can see that I'm just creating frosty am disputing the class. Okay? Now, here in this lecture, I will tell you about the classes and the object is tagged by its tab. That how here you can see I have to firstly write a class. And the class here is let suppose this is the class of car. Okay? So here we declare the class, the class keyword, and the class name here is the car. Okay? Now here, some of you may say that like how to use the classes right here. In the PHP programming language. You cannot give it this piece between the classes if you want to write the classes. So here you write car underscore car, then you have the right car and car. Okay? And then here you have graduate, suppose capital car and cdr car, okay? So this is how you can write the classes, but given the bid is pieces between the classes. Okay? This is the one thing where I'm just creating right here. Now. This is the step number one that how OOP, Create the class. Now, here I am just adding the properties to the class. We're firstly I'm describing public. And the public. Here is I have read the model or you heard right, that company of the car. Okay? So recall the properties to the variables inside the class. And the property can, except the values like the integer, integer, integers, strings, booleans, where you can set true and false values. So anybody but you can write in the properties. Here, you can see that first is the first thing. I am just writing public. So the public keyword in the front of the class, property. Now, so I just make this class proper deep public right here. Then here you can see that this is the naming convention right here where you can set capital C's kept small c or any name, this variable rate. Okay? Now here after that I have read this public. And now here I have to read the color of that layer. Suppose a color of the car here is white. So I just defined one of these strings right here. And here, I have read that this is door, or hear a side. This is like your car your car here. I decide that this is true, that I am just I held true car. Okay? You can see him. Know here. I just write the string variables right here, where I just said the color and then here v, how the Boolean values right here. Ok. So you understand now that how we can create the properties of that car. Now here you can see that I am just creating the object right here. So we cleared the several objects from the same class, which each objects having its own set of properties. How legacy? Possibly I have to write no less than. And here I have to write this is Toyota. And Toyota which is equal to Harris. Write new and the new hair is car. So you can see here v create object Day or dot. Here is an object from a class car with the help of new keyword obscurantist handle. And the process of creating object is also known as initially. Hope. So you understand now, now here you can see that I have to write that this is BMW, which is equal to here I described new. And you will get the property of the car class right. Hopefully you understand now, in fact, vitiate and many objects, as you can see here from the same cloth. This is Classes of one. Okay? Then we have the company, right? And the boolean value true, which is a cooler or for loop. Ok. Here, you can see that what is the class right here? Let us see that. I am just kidding. Empty car right here. And this is the course for the, for the designing right here. But it's fine. Ok. Here you can see this is just our template. What is this car is four. Okay? Now you can see that what are the objects right here? The object here is, you can see that firstly, I will provide the company of that car, means that what is the logo of that company means that manufacturing. Then here you can also define the color which is white, black, or red. Okay? And you can also define that this is the total or this is the formula. Hopefully you understand now why in procedure is tired of the programming. All of the functions and variables set together in the global scope. You know about the global scope with allergies, terrible dad also innovate that is allowed there, used just by calling their name. We are setting the global scope outside the functions and we are calling the global name and we call again and again, okay, to use the classes, makes anything inside the classes which is hidden from the global scope. Remember that? And this is just because of the code inside the classes is encapsulated within that class is cold and outside the reach of the global scope. So you need to love the core from the globalist. Coby used the Corbett in the class. And we do this by creating the object from a class. Hopefully you understand now that how you can use the classes and the objects together right here. Okay? So this is a simple concept where to I'm just teaching you to clear your confusions right here that what are the classes and what are the objects side here? So if you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture.
69. PHP Abstract Class: Hey guys, welcome to this lecture. And in this lecture we are talking about the abstract class in a PHP programming languages. The abstract class, which is mixed vaccine and interface and a class. It can be defined functionality as well as interface. The class which is extending an abstract class, must implement all of the abstracts methods defined in depth abstract class. The abstract class is declared the same as the class within the additions of the abstract keyword. Here you can see that I just write abstract and then here I just write class. Now here I have the name of the class, which is dog or car. As it, as it, as you know. Here you can see that after that, if you are extending some of the attributes or some of the things in the class. So you have rights in poly class name, which is the keyword right here. Then you heard right class name. And then here you have the US extent as a keyword. Okay? And then you have read a new abstract. Let suppose here I strike dog. Ok. Hopefully you understand now that how you can use abstract classes and what is the extension of the abstract class in the PHP programming language? In programming language, abstract type is a type nominate you type systems be Laika initiated directly. Ok. And this means that our tag, this is not abstract, which can be initiated. We discard a concrete type, helps you understand now that what is the abstract classes and abstract right here. Okay? Now just turn to the example of that. Here you can see that we held abstract class here, where the checklist here is dock. Now here I just use all of the functionality is right here, which is abstract, which is I strike public. And now here I'm creating a function. We're striking the function name here is let suppose our dog breed. Okay? Closest chord. Here I have right there. This is abstract again. And the abstract here is the public. And the public here is the function. The function here is the color of that. Okay? Now here you will see that now the class of dog, and I just want to extend the class of dog and the dog one. Okay? Now here you will see that I have to write public. Public is a function right here in the function here is I have, right? Okay. And then here the bleed here is usaid. That debt will print the breed of the dog. Here is, this is German dog. Okay, now here you can see that I'm just extending this class with the help of this extent. And here I just create a new breed of dog hair, which is the gentleman dog. Now here you will see that I helped write public. The public here is the function, and the function here is, I have the right color. So what is the color of the dog? So here I have to write equal and the color of the dog hair is there. Suppose this is black color. Okay? You can see how you can extend these classes here with the help of extended abstract class. Okay, hopes you understand now. Now here you will see that I'm just creating object. So all Vg which is equal to a new object. And here you will create a new object, a new class. So here we are. You can see that plus dv, how the class, this is a dog one and here you want to extend slightly a confusion about that. Here you can see that firstly, you have read that class of new very wanted to create, or you really want to extend that class and then extend our old class right hand the name of that old class. Okay, now here the new and the new hair is, I have arrived. This is dog one. Okay? And this is where I am disputing the object. Now here you will see that I helped write OBJ and the OBJ, which is creating object to that breed. And for that I am disputing the object to the color as well. Hopefully you understand now that how you can create the abstract class and get the values from it, and how you can change and update the values. You can see here, firstly that we'll write a German dog and the color here is hope. See you understand now. If you find any of the problems regarding this lecture, please let me know and thanks for watching this lecture.
70. Access Specifiers: Hey guys, welcome to this lecture. In this lecture we are going to be talking about the access specifier in a PHP programming language, controlling access to the public, private, and protected access modifiers. So these access specifiers can be used on the boat variables and the attributes method. Public, private, and protected. These are called access modifiers. Just like C plus, plus, java and other programming languages. They also access modifiers such as public, private, and protected. So we already studied about the public access specifiers. The visibility of a method or a constants can be defined by prefixing declarations with these keywords. First keyword here is the public. Then we How? Then other key, one key word here is the private. And the turbine here is protected. If the class member declared as the public, then it can be accessed anywhere. Means that here I'm just accessing the class member where the public hair is a. So I can access this any. We're inside the class. Outside of class. If the class member declared as protected, then it can be accessed only within the class itself. And by inheriting pattern class, how we have two types of classes here. So two types of glasses right here, which is, Let's suppose N B Class II here is, you may say that, that is these class, or here I'm just writing this is a class. And then we have the class B right here. Okay? Now here, when we are just trading class a, so I just cleared this class as the base class and then class as the child class or a subclass. Subclass E Here is a pattern and plus b here is the class right here. So this is how you are creating that every child has access its attribute of his pattern. You will learn about that in next upcoming lectures when we are just studying mode inheritance. So just make your concept right here. That is a base class and what is the subclass here? Okay? So here, I just said that to the protected, if the class members declared as protected than it can be accessed only within the class itself and by inheriting pattern class, okay? Then we hell, if the class member declaring as the privates and then it may only be accessed. By the class that defined the members only. Okay, now here you can see that, that these are the, some of the explanations of the public, private, and protected right here. Now here, let's see how we create that. I'm just demonstrating the one example right here we are. I'm distributing the public, private and protected. Let's suppose we had a class. And the class here is ABC. Any class name right here where I'm just creating. Then here I'm just creating a variable. And the variable here you can see that variable is ten. Okay, firstly, I'm distributing simple variable here. Now here demonstrating the public. And the public variable here is b, and the b here is 11. Okay, now here I just tried these are private. So private is a keyword here to be clearing the private. And private is C and a T here is equal to 15. And then here I have to write that protected. So protected here is, you may say that there is D and the D here is equal to 20. Ok? Here you can see that I'm just creating three variables here. Sorry, four variables here with the help of variable a. There, I have to access the public, private and protected. Now here you will see that this is a base class where I'm just creating all of these thing. Now here I just write class XYZ, which extend the class ABC, right? Okay, I didn't write any of the cingulate here yet, so forth. So this class will extend this class if I just want to give some of the values to it. Okay? Now here you can see that. Now after that here you can see that I have a ride will be j. Okay? I have write this OBJ, OBJ, which is equal to here. It is new and the new hair will be XYZ, okay, which is the name of my this extended class right here. And as close as core right here and heritage are equal and the coherence is OBJ, or an OBJ here is I just print the variable. Ok. So here you can see that that will guard this access and then data will move Buddha this class and check the riskless rate here. Okay? Now here you can see that if I just run this code right here, so you will find right here that is undefined variable there. The E here is excess specified number 22. Here you can see that this is the number 228 here. And here, tell me that you are defining some of the and defined variable here. This is just because of where I am just accessing the attribute of this class. The E here is declared inside this class, and this is just because of not showing me the output for that. Okay, now here you can see that here I have great. Let's suppose I have to write E coli and E cohere is OBJ and VGA to here, which is equal to I have who access the BS1. Now here I helped write that. This is object number, object number Cu and object number two, which is equal to I, will get the object of here, x, y, z right here. Okay? Here you can see now after that, here I'm just creating a function. So the function here, which is inheriting the private attributes right here, okay? Now this function is for underscore, and here I just read that a construct. So here I have grind that this is the construct right here. And then here offered this constructor. I have 2p, right? And here is plus the, I have to get this. And this will get fee right here. You can see here is private and I'll just tell you that I am just accessing or add just inheriting the private attributes right here. Okay? Now here you can see that firstly, I have to get this private attribute with a helper functions and then you can write that. Okay? Now here you can see. So I'll just tell you that venue are just declaring the private and protected attributes outside the class. So you have to declare this order, you have to inherit this. Here you can see that this is, I am just using a construct right here. We will learn about that in whenever we are working with the constructor and the inheritance is a separate topic, okay? Now here you will see that you can also access the protected attribute with the name of that lake here you can write those sign-in or you have to simply write d right here, okay? Now here you can see that I know this program is much confusing for you, but this is just for making your concept clear right here, okay? Just leave it right here. Now here you can see I'm just writing or I'm just commenting this program right here. Then closes comment right here. Okay, and now you can see here, I'm just creating one of the, another PHP tag right here. And then close this PHP tag right here. Now one by one and separately, swing you guys, that how you can access the public, private, and protected. Let's suppose we have the class name, which is a car. And then here I'm just writing public. So public hair is, let's suppose I'm just getting the model of the car idea. So here you can see that this is the public methods and properties. Now here you can see that I'm just getting the public function right here. And here I am just writing the function image is getting the mortal right here. Okay, and add last here you can see that I have to write return, and return will be the car model. And then here I have to use or I have to concatenate this keyword. And here I have Greg, Martin, okay? And then closest chord right here. You can see here. Now here I am just writing the matters and the properties of data. The method here is the functions to get and the property here is the model. So as you know that the public members, you can access any there in your class or a new Of course. Here I have read that this is the BMW, seemed like our example. We are steadily mode that in our last lecture. So here it is right car. So car here is my class name and then here I have to write that is BMW. And then that will access the mortal of that. Ok? And here we have to write the model here is that suppose the BMW right here, BMW five, okay? This is the model of the car. Here you can see that this is the public data type, sorry, yes, datatype, which is a variable. Ok. Now here you will see that I'm just accessing this outside the class. Ok? And you can see that I'm just accessing the method of that. That function is outside the class, which is again Martin. And here I have great that, that will get the model right here. And I just closest chord right here. Now amines strontium discord. And you can see here, OK. We're, that we'll get the objects and all of these models right here, which is the BMW five right here. Hopefully you understand now. Now this is the one way you have to use your access modifier, which is a public access modifier via You can access the property of that. Any of you know here, you will see that when we are accessing the private modifiers. So then we can prevent access to AP properties and the methods inside our class if you define them in a private access modifier instead of public. Let's just see what we do. Here. You can see that we have the Martin and I will try this mortal as the private because I just want to hide the information of that heritage site. This is private, is a more rate here. Now here I'm starting this function name as the public here. And after that here you can see that I'm just accessing all of these informations. Ok? Why I just write this as the public and here the data type as a private. This is just because of here. These mortal hide his information. Okay? And then this function will get. Or this public function, we get the information from this private and then that will show me the information of all the modern idea. Okay, now here you can see that when I just rephrase this, so we have an error in line number 40. And here you can see that this is a BMW. And the moral here, which is equally as known as fun, I think zones, fine. Now, why this is show me the ADA right here. Does it just because of here you can see that that will be the private members of that. And you cannot access the private members outside the class. How we can access it, legacy, then you are declaring the private members of the class. And when you are just accessing the private members of the class outside, sorry, outside the class. So you have to write your name all that private variable right here. So this public access modifiers allow the access method which is accessed outside the class right here. Hopefully you understand now here you will see that I'm right. And if, suppose here I just write this. And then here I just write this as a moral right here and here I just right there. This is the variable models. And now here you can see that you can access this mortar right here. Okay? This is a function, and here you can see that this is a set. Sorry, this is get modeler, get horn rate here. So here the gap more than they seem right here and now here I am just writing. Or I just did a little mistake right here. This is just because of here you can see that you have the right public. And the public. Public here is the function name, and here you have to write set mortal. So set moral is to getting the variable name right here. And then that will show me the OK right here. Now here I have to write that seems straightforward, right? And here I have declared this is the model and the model will be more than right here. Okay? Now here you can see. So now with the help of this set matter, rather than just declaring a certain model or dams declaring right here. So you have to simply access the mortal or fewer car, okay, with the help of this private, this public function, so you can access your pilot mortgages as you are pirates variable as well. Now here you can see that I save this. And then here I will go to the browser and refresh it. Okay? This is not shown in the upper right here. This is just because of fear I have right set. And the set here is the mortal. And here I will provide the model of that. Okay? And then this is end of the quarter. Then it again and run this. So here you can see that you will get the car model, which is the BMW five right here, with the help of this private and the public function, okay? Firstly here you can see that I just set a variable name which is private. Then here I will set a mattered, sorry, set a mortal vigil, get this variable right here, and then that will show me NDA. Oh, port for this private access modifier or excess is specify right here. Now here you can see that why do we need Access Modifier? This is a question right here that we need excess modified in order to limit the modifications that the court from old-time their class can do that class matter as the properties define a property or the matter, the private only mattered that are within the class are allowed to approach it. Hopefully you understand now that how we use the private and the public access modifiers, okay? Now here I am just giving you a quick overview on the Protected Access Modifier. So here you will see that a separate defined what I'm describing right here. So this is protected. And the protected Here is my data member. And now here, firstly, I have to create a class and the class name here is ABC. And inside this class I have provide this protective. Okay? Now here you see that. So firstly, I have to write the variable and the image is equal to here it is, right? Then after that here I've read variable b, and the b here is equal to 49 here. Okay? And these both members are the productive right here. No hair I'm disputing of functional add right here. And then here I have read equal statement. And the statement here is that there is, firstly got the thumb and the sum is equal to here I write this keyword. And then here I have to get the value of plus, plus, I have to get the value of b, okay? Right here. And then here I have to concatenate the BR tag. This is just a logic, so don't confuse it right here, only focused on the protected data type. Ok, here. Now here you can see that now I'm just using this example. We are, I'm just extending my class as well. Here I just used class, which is let suppose this is a child class, and I just want to access this child class right here. So don't configured here, then we are just working with the inheritance sold. Our concept is much clearer about their classes as well. And the class here is ABC. Abc is our parent class. Now, here, I just inherited all of the functionalities of this patent clause into this right here you can see here I just write a function which is add, and here I have one other functions. Let us see that there is a functions of you may say that divide. Ok, here you can see there where I'm just creating this Dwight functions outside that class. I just tell you that this is our parent class right here. And child will access all of the continuity and data will inherit all of the functionalities from the parent class as suppose this is a child and the child is species come from, all of these come from his pet and okay, let's just make a concept of that. Now here. I start equal, equal here is I just divide and the divide heritage is equal to. So I just copied and pasted right here. Here I have to use our division sign. Ok. Now here I'm distributing the object. So OBJ equal to Harris write new and the new Here is the child class. Then here I have to write OBJ. And the OBJ, which is here I am today. There is an error function. And after this add function, I have to create an object to my new function, which is function right here. Hopefully you're understanding, oh no, I'm just running this corner. So here you can see that just simply access this 60 and then 0.5 right here. Ok. With the help of protected. Now I am just expanding the court for you. Here you can see that data is protected, which is 2020 plus 40 is equal to 16, right? Answer. Then 20 divided by four, which is 0.5. This is also our right answer right here. Now here, these two data members are protected. Protected means you can access inside the where clause. So you can see here this is the inside function and this is a same class where I'm just accessing these data members. Okay, as you can see here. Then V access these different types outside the class or another class. So how we do it? So we can enhance this class in Judah next. So you can see here I just inherit the modular activity as a class and create a new class, then extend this class with an ABC. So I just inherited all of these data types into that symbolically or the functions get the values of that and use one another. Logic. And this is an old example with object idea and you know how to create an object. Hopefully you understand that how you can create protected private, and public access specifiers in PHP programming language. If you find any of the problem regarding with this lecture, please let me know. And thanks for watching this lecture.
71. Const keyword: Hey guys, welcome to this lecture. And in this lecture we are going to talk about the constants in PHP. You can define a cost term by using the defined function or by using the constant keywords outside of class definitions. The constants are one type of variables, V candy plan. For any class with keyword constant. The value of these variables cannot be changed anyhow after its signing. Then once you've assigned the value of that data value cannot be changed. So this is a logical constant. Here I decide PHP, close as PHP tag right here. Okay? Now here I have red class. Class is abc. Now here I have a constant. The constant is x and the x which is equal to here, I just write that this is constant. Okay? And then closes core right here. Now here, I just call this constant right here, will help balls. You can see here ABC class. Then here you can see that I have to write ratios. And then here variable X, and then close the score right here. Okay? So now I'm just accessing or running this chord. So here you can see that this is the constant rate here. So if we are inside the class, then the value of the constant can be get using the self keyword. But accessing the value outside the class, you have to use the corporate solutions operator. Hopefully you understand all that hall, we can get the value of the constant right here. Which is very simple. If you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture.
72. Constructor: Hey guys, welcome to this lecture. In this lecture we are going to talk about the constructors in the PHP programming language. A constructor in PHP is a special type of functions of a class which is automatically executed as any object of the class is created or initiated. Constructor, it's also called a magical functions. This is just because of in PHP, magical mattered is Tarde using the underscore correctors. Okay? Then you create a new object. It is useful to initialize its properties. For example, v, how the bank account and the object you can set, It's initialized, the bang, it initialize the balance is Pacific IMO. So PHP provides you a special method to help where you can initialize the objects properties, which is card constructor. Here I will tell you about some of the examples of the constructor. There. You can see that how we create the constructor. And the class here is, I hope read you export the class here is mode. Okay? Now here I hope ride public. And the public Here is the bird name. Okay. This is equal to here it is right there. The bird is, the name here is, suppose I have bragged that pattern. Ok. So this is a pattern as a bird. And then here I haven't read this in the public. And the public here is the function. And now I'm just creating the constructor right here. So the constructor here, I just told you that you have great Lu, Bu underscore sign and then a constructor as a keyword. And then here I have Greg, this is a bird. And the bird which is name, which is my variable here when I am creating here inside this class. Okay, now here after that you can see that here I have to write this keyword. So this here is, I have read this in a bird name right here, which is equal to I have to get DID burning. Okay? Now after that here you can see that I have to write bird is equal to nu bar. Ok. This is my object right here we're demonstrating. And here I have to write that parrot is Berger. Okay? Now here you can see that. Now here. I just create a constructor right here, which is a public function, and then constructor, and now I am just calling this constructor right here. So this constructor will automatically call just because of the initialize, the object. And the classes here is bird right here. You can see that OK, helps you understand now. Now after that, I have read equal. And the equal here is bird, okay? And then here I have Greg. This is the bird name right here. Now. Now here I am running this code. Here you can plan the PEDOT is a bird as our course. Now just come back to the core. Firstly, you can see that I am excluding the class. Then the public Bird which is equal to penetrate here, which is the variable name, and initialize the value. Then here I have read that a constructor right here which is using the function. And this is the bird name right here, which is my variable here. Then after that, this and hair burning and Denmark. Here you can see that I have call this constructor automatically just because of here, I just create this constructor right here is the bird name. Okay? Now, let's turn to the one other example right here. We're, I'm red PHP and then closes PHP tag right here. Any example right here. This is a very simple example for your understanding only via drag this to the public. And the public care is the function tells me I have to create this function as a public. Then here I have read that this is constructor. Okay? Then after that here, as just didn't initialize any of the values right here. And here I have to pretend they're equal and equal. Here is constructor, okay? Now here you will see that while we are creating the object to, I am just calling this constructor right here. So OBJ, which is equal to mu and the new hair is ABC. Abc is my class name. So here you can see that this is the first constructor we're demonstrating here. And then OBJ, which is here. And it seems like it's laid out. You can see here, you can call the pan to this constructor ethnic gender score. So you can see here constructor, constructor, constructor and the constructor right here. So this is how you can create your constructor. Here you can see that PaCO2 cleared the className. Okay? Then I just initialize the constructor right here. Okay? And then after that here you can see there do you have cleared the object with that as well? Now, you can, you know about that, how we create the constructor and how we get the values from it. Do you know about the constructor or loading? So constructor or loadings allow us to create the multiple constructor with a same name. Let's see here you how the constructor name here, which is bird, is a bird name, okay? And if you want to reuse this name in the second chord as well. So this means that you can or Lord, this constructor right here. Let's suppose we held public. And the public function here is underscore construct. And that construct here is, I'm just using the same and the same variable name right here, and the same constructor right here. Okay? So this means that here you have used or you have to create a constructor or loading. This means that this is, you can see here constructor and the constructor as well, Okay? Here you can see that the constructor or loading allow you to create them multiple constructors with the theme name constructors. But the pedometers yet are different. The constructor or loaded. Loading enables you to initialize the object properties in the various v. Let us see you have the different types of parameters like birth_name, bird color as well-done per bird, species as well. But here you can see that the construct of the arcsine ratios, and this means that this is a constructor or loading in the PHP programming language. Then other thing there, why you need constructor. As we know, the constructor is a special functions and it is automatically card, then any object of the class is initiated or initialized. So indirectly, we can take the benefit of the constructor by using it in our class. The Kennedy's tap the object before using it. Or ten is target the sessions in the constructor. So we don't have to do is tarred in every method of the class, you can simply write some lines of code and this heart initiate an object to call a class method, then the constructor is called as an object is initiated or lake initialized. And the line of code which is written in the constructor is executed automatically. Seemed like discord. Hopefully you understand now, if you find any of the problem regarding to this lecture, please let me know. And thanks for watching this lecture.
73. Destructor: Hey guys, welcome to this lecture. And in this lecture we're going to talk about the destructor in the PHP programming language. Here you will see that why we uses structure and what is the destructor? Destructor in the PHP is similar to the other object-oriented programming languages or the object oriented programming concepts like Java or C plus plus as PHP destructor is handled by the garbage collector, collector, all these focused or the object, then there are no need of object. Then it is automatically. Try that object. The destructor method will be called as soon as all references to the particular objects are the mood or when the object is explicitly destroy it in any other shutdown sequence. Hopefully you understand now that why we use disruptive. So destructor function is an inverse of the constructor. Remember that? And the method name of the destructor in the PHP is different from the constructor method name. And it cannot take any arguments like constructor and destructor functions businesses starting from two underscore LAN and then this truck. Whereas the keyword right here, I just take the example of my old core rate here and then pasted this code right here. Here. You can see that our className area, the bird and the bird name, which is a pattern right here. Okay? Firstly, you have to see that I have to create the constructor idea is the name of the bird. And then here you can see that. And I dared let suppose I have grabbed that equal and equal here. I say that I am constructor. Ok, and then close the score right here. Now offer that. Here you can see that I just cleared underscore destructor right here. Okay, now this is just a keyword right here, that this is this truck with the keyword right here. Then remove this from here. And here I can write that equal that I am destructor. Okay? And then closest core right here. Now after that here you can see that I have to clear the board. Ij is equal to the new and the board ahead is padded. And then equal, which is the bird. And then you have grade the bird name. Ok, here you can see that which is high, I am constructor is a pattern. And then that will execute. And I'm an instructor. You can see here firstly that when run the constructor, then destructor, and then here, the result of the patent right here helps you understand now that how we can create the destructor right here in the PHP code right here. Okay, now here offered that N is running one another example on the destructor right here. And we'll show you that the destructor again. Here, I operate PHP, then closest PHP tag right here. Now here you will see that I just create the class here, which is ABC. Then after that here I am just writing the public. The public care is the function, and the function here is a. Okay? This is any function name or executing right here and right here is constructor. Ok. Then after that, here I have to create another class. And the class here is B. And B will extend the class II. Okay? Now here I have arrived there. This is the public, and the public here is the function, and the function is, and the function here is construct. So I'm skirting the constructor right here and offer this function here, I hope right there. This is the class. And after that here I have to write this is equal and that will be the head in class. Ok. And then here after that I have grade equal and the equal here is constructor of child. Okay? Now here you can see that I am excluding the constructor. Now. I am creating this structure right here. So public, public is a function right here. And the function here is underscore and does Trump. Okay? And then here I have read that this is equal. And the equal here is I have read destroy the distro, which mean that the striatum instructor right here. And then after that here I am right there. This is OBJ, new. And new here is OK. Here you can see that. But sorry here, new here, B, this time class name right here. Okay. Now here you will see that that plus I have write. The class name is ABC, then the public function here is a, and this function here is what I am disputing Nigeria is a construct. Now here you will see that I'm just creating the class of E, sorry, this is a class C right here. Okay? Yes. Okay. Good, right? The same function, images, ABC, ABC right here. Okay, it's fine. Now. Now here you will see that, that will extend my class damages ABC. Then constructor here is public function seem like overall court. And then here you can see that the pattern is VC clause and then a constructor of the child. Now here you can see that ad is using the destructor again and try my statement right here. Knowledges Chang the output for this core. And here you will see that plus Mihai, I'm constructor. Then PEDOT is a bird, then constructor, constructor of the child. So this is my new CTO, constructor of the child and then destroy the constructor and destructor right here. So this is the program when I'm creating on the destructor. Hopefully you understand now. If you don't understand, please let me know and thanks for watching this lecture.
74. Inheritance: Hey guys, welcome to this lecture. In this lecture we are going to talking about the inheritance in the PHP programming language. One of the main advantages of the object oriented programming is ability to reuse the code, which is using in the duplications, in the inheritance. The court duplications occur when a programmers write the same code more than once. A program that inherited is trying to solve. In inheritance me how apparent class with it's own mattered and the properties. And when other class beheld the child's glass that we'll use the core of the parent class. Inheritance in the PHP object-oriented concept, which is based around the concept of the base class or the superclass. And that we'll derive the class or the subclass. The base class or the superclass are known as the pattern classes. Or you may say that R, Similarly the derived classes and subclasses are known as the Child Classes. In real-world futures, you can see on your screen that their parents, some way in object-oriented child's are inherited properties from his bed. And you can see here, these are the parent and the child inherited properties from the parent rate here. Let us see the hairs. You can see that here, colours, then eyes, okay, from his bed and then knows. And you can see the lips and hide as soon as a case like in programming language asthma. That childless and headed all of the properties of the parent class. How? Let just see here you can see that I'm just creating a PHP core and closest PHP core right here. Now here I am illustrating the class of patent. Ok. Insert this class, I hope right there of function. And the function here is, you may say that this is a. Okay? Then here I have read equal, and then here I just bring that parent class. So I just cleared the properties of the parent class right here, which is equal. And then here I helped write this pattern classes right here. Now, here you can see I have to create the class. And the class here is child class. And the child class extends parent class. This means that, that will enhance the properties of this parent class inside his function. How large you see I have the right function. Function is b right here. And now here I have write equal and the equal here is I have random, this is child and his child. And closest score right here. Okay? Now here you will see that I have to write object, object, which is equal to your register, write new. And the new here is I just cleared the child class right here. Same is the case, like over all corn, corn. Now here I just read object that will get function. And you can also inherit functions B as well. Now with the help of this childless I am the properties of the pattern class right here. You can see here now, when I just run this into the browser. So line number 12, we have, fine, alright, here we are. We have the class of patterns, and then we're, this pattern class is already reserved. So here I just write parent one, and this is child one and child one here as well. Independent one organ. Now here you can see when I just run discord and refreshed it. So you can see here I just simply inherited the pattern class with the help of this child class. You can see here the architectural fright. Now, this is my patent gloss. And the properties of their, let suppose this is equal parent class and I just want to get the properties of the parent class inside the child class. Simply I have read child class extend pattern. And then here I just fear when other function. And after that here you can see that this is the child class properties bug. Then I just creating the object to it. We are the new and the child one right here. So I just simply get the properties of the object. Properties of the parent class lecture. Hope so. You understand now with this corner, OK, that how we can extend the properties of the pattern and the properties of the child. As. Let us see more about that. Here, you will see that I'm executing one another class. And the class here is, let suppose this is one another core right here in the PHP and here I just closest score right here. And now. Now here I'm including the class. And the class here is let suppose the car. Okay? Now here I have right, private. Private here is the model. Okay? Now here you can see that this car is my base class. And the properties of this class here is private inside the class. Now here I have the right public, public function. And now I just said the model right here and the moral here is that suppose we have the model like this, okay? And I am just writing a set matter. Do it where I just said the model of this private lambdas accessing these private attributes. Sergio. Okay, now here you can see that I just used this keyword. And then here I have to get the model which is equal to, I have to write the variable model right here. Okay? Now after that here you can see I have to write public function. And here I have the right function, right here. Okay? Now I have to return their car. And the car here is horn sound. Okay? And then here I can catenate this function which is getting the model. Ok. And the empty string and closest score right here. Now after that, here I have to go to the child class. So here I have the right class. And the class here is, means this is a car. And here I have, write this as sport to sport car is the child of that class. And here I have two extends. Car right here. Okay. There is no court. Alice didn't write any of the core inside this childless, Just want to inherit this parent class. Okay, now here, let me see. Here I have to write there. It's poor car and this pore car here, which is equal to I have write new. And the new here is, is poor and distributing the object to it. So here I had I had read as car for this court scar here. Okay. Now, you can see here, I'm just creating the object of the child class right here, which is S Car is equal to the new chord is poured car. Then here I write as car and the car and the car which is setting the mortar right here. And the model here is, let suppose this is BMW. M is a kids like all corvee allergy study about that. Here I just write as car and the car, which is getting the function right here. How you can see now, here you can see that facility, we have a parent class right here. Okay? This is the private model, okay, which is my variable here. Now here I'm just accessing this variable with the help of this segmental function. Then here, this is the model which is equal to the modal. Okay? Then here I am disputing a function again, and here I just return that this is the horn sound old car. And you still get the model right here. Okay? Now here I am disputing the child class with no code. And then here I would write S Car is object right here, and then here I have to inherit this child class, okay? Now here I am inserting the mortal that do this child class and then as car will get the function right here. Okay? So at that stage, I am using the child class is ten, or child class, which is inherited from the base class at that stage, ok, here you can see that now here when I just run the score. So you can see here firstly that will run the horn sound and then i will inherit this class here and the help of this chord, okay, here we have the output as the BMW, which is the set method. Hopefully you understand now that how we can enhance our child class with a base class. Okay? So if you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture.
75. Encapsulation: Hey guys, welcome to this lecture. In this lecture we are going to be talking about the encapsulation in the PHP. The wrapping up of the data in a single unit, which is called encapsulation in a PHP programming language. Just like that, you can see the many people get confused when someone asked them to explain it. When someone with some examples, this concept will come in your every time when you go for interview. What is the encapsulations? Elaborate some of the examples to it and when to use it. Here in this lecture, I will tell you about the, everything above the encapsulation. And you will be completely understand him all the encapsulation and you can crack your interview is in as I just showed you that wreck wrapping some data in a single unit, which is called encapsulation. Encapsulation is used to save the data or information in an object from other bits means that encapsulation is mainly used for protection purpose. If you see this in the technology era, it is essential to maintain your privacy. So for security reasons, sometime be made private matters. As you turn it involved. Okay. The private matters means that it can be accessed videos, some classes and outside. But classes can accept, cannot access the private matters of the other class. That's why the encapsulation is known as the data hiding concept. Which is main advantages of the encapsulation. You can also call the encapsulation the data hiding concept just because of an encapsulation v, how to hide our entire data from the other functionality as you can see on your diagrams. The second advantages of the encapsulation is you can make the class read already and write only by a providing setter and the getter method. I think so you are much familiar involved the setter and the getter method already. Okay? So hiding the internal for the object protects its integrity by preventing users from the setting the internal data of the components in an invalid or in conscious state. Now here, plus, I'm just demonstrating some of the example on the encapsulation. And I will tell you about that. What is encapsulation? And after that, I will tell you about that, why we need encapsulations. Does encapsulations work? Ok, here you can see that let's suppose v, how the class name, which is, and the class name here is the human hair. This is a class of human. Okay? Inside this class name, I have grind, the private data members where I have great name. And the private Here is the gender. Okay? Then after that creating these data member into the class, I had great public. The public here is the function, ok. Now here I have to get the name. Ok. Here you can see that I have to set the getter method to get these names and the genders values. Because you can see here the data is hide in that stage right here. Just because of here, these are the private data members. Now after that here I have return the values from, or I just get the return values from the disk keyword right here earlier, I had to get the name of that data type, which is the numerator. Now here I hook right. This is return right here. And the determinant, this keyword right here. Okay? Now after that here you can see that I have to create whatever public functions right here, where I have write functions, function which is the get gender right here. Okay? This is a gadget and this is her agenda. Okay? Now after that here you can see that I have to return. The return here is this. And here I will get the gender right here. Okay, that is closest chord right here. So gender here is my variable, as you can see. Okay? Now after that here, you can see that I'm disputing what other function we're a hub ride that this function is the public function. And then here I have to set gender. And here I will get the value of the variable gender right here. Okay? I'm just getting the values of the gender. Now here I have to write if, let's suppose the gender here is the male and the female only for that hobos here, you can see that I have to write that under here. And if l is not equal to, I have to write that this is a gender. And here I have to write that female. Female is then other gender right here and here I have read if female is also not equal to the gender right here, okay, then I hug ride that, throw the exceptions to the new, draw, a new exception. We're here, I just write that that will simply set male or female right here for the gender. Okay? Now here I am disputing the exception as well. We're this keyword is the public. Now here you can see that offer this. Here. I have to write that this, and this here will return the gender right here and which is equal to here. I have to get the gender. Okay, now here I have to return this keyword. Okay? Now here you will see that I am this clear-cutting. And I'm just quoting here. The user and the user here, which is equal to, firstly, I heroku create this yes, human, human, which is equal to here it is, right, new human. Human is my class_name. So I am just occluding object to it. Which is human one which is equal to the new human. And the object we're executing right here. Now here you can see that C that I started human and human number one, which is equal to or which is right there, that is set name. And after that I have right there, this is the human number one. And that will drive get gender. Okay? Now here you can see that this is just a variable right here, but I'm scooting. So this is the object right here. An object is equal to the new one. Ok, and the human is my class_name. So I just create this class name for the human. Now here I am just writing the values right-hand the human value. Let suppose this is the name of the bulb right here, and the Bob here is the male. So you understand now, okay, now here I have whew, right, double-quotes, sorry, this curly brackets right here. Here you can see there. So with the help of that, I have to get this data, which is the private data. And here you can see that in this delta v, The encapsulations concept. And you can use encapsulation concept if the properties of an object are private and the only way you have to update them to the public method. How you can see here, this is the public method. You can see here we have the name and the gender. Firstly, I have to get this name with the help of getName method right here. Here, I just get the name of that private, right? Okay. Then here you can see that I have to get public, get gender and we are, I have to get the gender of this data type. Ok, now here you can see that I just write public functions set gender, which is equal to gender. And we have the two types of gender right here, which is a male and the female. And male or female for gender. So this is the exception right here. Okay? Now after that you can see here I just write this keyword and get the Gender and return this keyword right here. And after that here you can see that I just give it the object. And inside this object I have to set the name of this name here is the bulb and the bulb gender here is here. I have to run this. So you can see here in line number 33 V, How called undefined named Human. Okay, fine. Here you can see the line number 33. I have to call this human right here, okay? Yes. Okay, there is a problem where I just write this as a getName. And then here we have this as the get gender. And this is firstly, I have to say. And right here, okay, plus b, I will said the gender. And then that will give the gender of the male and the female right here. Helps you understand now, now here v, how the cert gender right here. So this is third gender right here. This is gender and 2-SAT degeneracy. This was a slightly confusion about that. So, okay, it's fine now. And here we have this third gender. And I'll just close this right here. No amines triangular on it again. So number 29 arrow right here. We're just see in the land number 29, I have to write there will be this. And here I have read Gender and then that will get the variable gender right here. Okay, now I just run it again. So here you can see that my code is working completely, but now give me the upper right here and just see how this is just because of here, you can see that I just read getName, but I just didn't provide any of the setName right here. So here you can see that I have to write, this is public. Public here is a function. The function here is I have read this is the gardening function right here. And then after that here you can see that I hope, right. And this right here, now here I have to get this right set name right here. And then here we will go to Add return and return here. Sorry, I didn't get the return values of it. So this is a function of the getName right here, and this will be the name of that. And here we have derived that this functions get, getName, and here we have grade this as the setName. Okay? Now here we have to write this is certain in function. Okay? Now here you will see, here you will see that I have this as the function, and this is the grad function right here, okay? It's fine now. And here you can see that that is getting the name. Now I just remove this and here I have to write their name is equal to name right here. Okay? It's fine now. So when I just run this code right now, so you can see here this is an incompletely, but not showing me the awkward right here. This is just because of this program, is sine. The male and the female here is the sad gender mattered or dactyl. Here, the uncage exceptions, which as you can see here that said male or the female for the gender. You can see here I just provide the Bob and the mean right here. Example, just for your understanding right here. Now here you will see that I'm just creating one of the analytics example on the encapsulation. And you will see that how I'm just getting the result from that, okay, now, here we have the PHP code. Okay? And then after that here I have two closest curation. Now you just see that pasty I have nucleated Glass. Glasses, anything if you aren't right the human, so simply righted human right here. If you want to write any of the things so you can write anything, I just create a real life example on that. So I just write the class here is bank. Okay? Now here, the bank here is I have to write this in the public. And the public right here is you can see here bank account, which is my variable rate here, okay? Now here you see that I have read public and the public here is bank balance. Okay, now here you can see that firstly, we have the two datatypes, vr, v, how the bank, which is number one and the balance is number Kuwait evil. Now here I have to create a function. So function here is, I have to write that this is the function of your suppose I'm just creating this function name as the employee ID. So you can, sorry, firstly, hair, I'm just kidding the function of construct. Ok. So you can see that this is my function of constructor. And here I have to pause then formation of banking called the pedometer of their function here is, I have read that bank balance. Okay? Now here you will see that this, this is getting the imply, sorry, this is getting the bank can deploy. This is Yes. Okay. Like bank account which is equal to here, I have read that this bank account, okay? And then here you can see that I have read this. This here is the bank balance. In the bank balance which is equal to here edges. I have to write that this is the bank balance right here. So clear variables right here. Now offer then I have write public. And the public here is the function. And the function here is, I have to write that. This is like her bank underscore detail. This is one another function or demonstrating they tear and here I have read that equal. Equal. Here is, I have read that bank. Banco detail. Name is sorry bang detail, a count. And then after that here I have to write this. And this here is, I have read there, this is Bank a calm, okay? And here I have to write that bank balance is, and then here I had ride there. This here is bank. Sorry, this is the bank balance. You can see here I'm just getting these two IDs right here. They are the how the bank account and bank balance here with the help of this bank retail functional idea. Now, after that here you can see that I have to die and that will be J, one, which is equivalent to write new. And the new Here is the bank. The bank is the class. And then here I have read that bank account is, let suppose our bank account is 253698. And then we have. The bank balance here. Let suppose how five-sixths, okay? This is my account, this is my balance here. Now here you will see that I helped write equal. And the equal here is I have read OBJ and vir I had, right? This is, suppose a bank, bank underscore V. How great detail right here. And then close the score right here. So before starting this, before running this, so here I have to write that this is OBGYN and now I just run this quarter. So here you can see that the bank a count here, 5369 and the bank balance here is 5632. You can see here firstly, you can see I discrete group, public data members. We are the bank and the bank balance right here. These are the two neighbors. Now, I'm just using the constructor right here, get the values of these. And here you can see that after that, I have to create one and the function of the bank detail right here. I just get the detail of the bank right here. And after that you can see here these are the values of that bank details right here. Okay? Hopefully you understand now that how we can get that. So now I will tell you that how encapsulation work. As we all know better, that encapsulation is used to hide the details from the user who achieved this. V can be the object of the class and the object is called the method. And the method performs with defined properties as you can see here. So here you can see that this is an example of the bank. And where we are. This bank is showing me the code and the balance here. Okay? There you can see that I just create a class of the bank right here. And after that you can see these are the coolest M enlist the help of constructor. I am getting these two data types right here and then the values of these two here in the next function, which is a bank did and get the values of that and provide the values of that in the object idea, this is how the encapsulations work in PHP programming language. The question here is why encapsulations? Then we wrap up data and do something. Then it's hide details from the users that we use it. For example, when we create an object from the class. So we didn't not know that what has been written inside the constructor. Hope. See you understand now that or how it initialize the value of the member variable and how the member functions are used to the object, manipulates the value of the members variables or that hall is generate the output. This is the main purpose of which we are using the encapsulation. So that's unnecessarily. Details should be Hyde from the users who use the class. To achieve this v often make them members private, or we made the member public or protected. So that is, cannot be accessed outside the class is someone Margo access those variables? It should be true the getters and setter method on the air. You can see that in our last example, we see that I just make these tool, the pilot right here. And then here you haven't seen any of the values eight here, does because of FastCV herbal, right, the exception idea. And the second thing here is our pooled data members are private data members. Hopefully you understand now that how this encapsulation work in programming language. If you find any of the problem regarding to this lecture, please let me know. I will also make a separate article on that, which will give you the knowledge about that as well. So if you find any of the problem, so please let me know and thanks for watching this lecture.
76. Polymorphism: Hey guys, welcome to this lecture. In this lecture we are going to talk about the polymorphisms in PHP. The word pulley, which is derived from Greek, and morphism is also a word of the peak as well. The poorly mean two. And the morphism here means that this is forms. The things which have many forms is card polymorphism. In object-oriented programming, polymorphisms, which refers to a programming languages and ability to broke process the objects differently depending on their datatypes or classes. More specifically, it is the ability to redefine the methods of the live classes. Okay? The polymorphism is the ability of an object to take many forms. The most common use of polymorphism, the object-oriented programming language, which occurs when a parent class reference is used to refer the child class object. Like a class which is a calm. So I am taking the example of the bank account right here. Okay. This became bank account help tumours types, which is, you may say that there is deposit and another one here is Vidra. Okay? You can see here it has two more forms right here, okay, now here you can see that this Vidra hell, I'm disputing Some of the more forms of drama which is saving. Then you have read your checking, then you have read your current account, okay. And then you have Greg Like privileges or fewer, a cone. So you can see here that it calls which are Gu types and then withdraw her four types like here. So this is just example that things which, how the money forms. So this card, the polymorphism right here. Okay? Or here, I'm just showing you one another thing. Let's suppose v, how the shape right here. And if you want to dry your ship, okay, then here you can see that we have the different types of shaped legs here, which is triangle. Then the rectangle. Here we have circle. Okay? You can see here. And we'll get this draw method right here, you can see here. So V had only one shape which held the many forms which are rectangle, triangle, circle. Hopefully you understand now that what is a polymorphism and what are the forms of that? According to the polymorphisms principles, the matter in the different classes that do similar thing should have the same name. As. I just tell you about the example that a prime example of the classes that represent that geometric shapes, such as rectangles, circles. October bombs that are different from each other in the numbers of frames and the formula that's calculated their areas, but they are all have the common areas and there can be calculated by matter. The polymorphism principle says that in this case, all the matters that calculate the area, and it doesn't matter what shapes or the cloth would have the same name. Legends demonstrate one of the examples of the polymorphisms, and I haven't show you about that, that how this polymorphisms work in PHP programming language. Here you would see that I'm creating a class. And the class here is the patent velocity. Okay, this is my pattern class here. What I am disputing right here, do you guys? You can see here this is a pattern class. Now here I am disputing of function. So you can see here this is a function and the function name here is like here. You can see that I start functioning is pulley. Pulley is just like I'm just representing the polymorphism to you guys. For your better understanding that how this polymorphisms work in different classes with the same functioning. You can see here, I hope right. One of the statement. And the statement here is I have write this or pattern mattered card. Okay? Now here you can see there I just call the pattern matter right here, which is the Pauli. Now, you can see that offer that here I'm disputing the class. And the class here is a hook right child that we extend our parent class. Okay? Now here you can see I have great public. The public function here is boiling. So I am just using this function here as well. This means that I am using the same function name, but they have different types. So you understand now that how we can create it. So here you can see that I have to write this as parent form does goes up. This is already reserved. And yes. Okay. It's fine. Now, you can see that after this here I have write that this is equal and coherence Einstein, their data is child. Class card mattered. Okay? After that items closest score right here. Now here you can see that after that I have to create one other function. And the function here is, you may say that that is a function of padding function, okay? Which is getting the parent class right here. Here. I had read this as a pattern number one. And then in here I'm disputing the variable which is PIT here. Okay, now here you can see that this is a variable p, or this is the pediment of the function which is the variable p right here. And then here I have to write that this is the method. Or here I have read there. This is the pony mentor right here. So I just call my poly matter right here. I have right after creating the pulley method, I have Google could create. Let suppose this is the p. P Here is my variable and which is equal to her. I've read new. So here I am disputing the object of this type number one class. Okay? And then after that here, demonstrating that this is pattern. And the pattern here is the function. And I am just calling the variable p right here. Okay? Now here you can see there. Now. And just running firstly this example, Do you guys? And you can see here the child class card, the polymethyl. Now here you will see Firstly I have nucleating this patterned gloss. Then after that here you can see that this is the public function which gives the poly function. So I am just reuse this poly functions many times with different forms. Okay? First form here is the ICO based or the pattern mattered Bali card. Okay, now here you can see that I stride class Child number one, which is extending the parent one class. Okay? Now here and is using the same coli function right here. Okay, now equal and the pin child class poorly method. So the method here is seen, but the forms here are different. You can see that. And then here I'm just simply colon. This is all classes of the calling encoding guilty. So polymorphism which represent more than one forms. It is most, and it's a gene using Matador loading and Matador writing. This is an object oriented programming concept where some functions can be used for different purposes. Here, I'm just demonstrating to you guys one of the best example of the polymorphism where I'm just using interfaces as well. Okay? The ability to process the object differently. And integral part of the polymorphisms is common interface. Polymorphisms is designed is our design pattern in which the classes have different functionality while sharing that the common interface. And you can define an interface in the PHP using interface or the abstract plus. Okay. The question here is what is the interface? And interface which allow the user to cleared the program is specifically the public method that a class must implement without involving the complexities and details of how the particular matters are. Employment in general refers to as the next level of abstraction. Discard the interface. Here you can see that I have right interface. And interface here is shape. So I just tell you about that our last diagram, but you remember that a shape, how many form we're beheld a rectangle. Then we have a circle, and then we have a triangle as well. Here you can see that I am creating a shape right here, which is my interface. And now here you will see that. Now here I have read that this is the public, and the public here is the function, and the function here is the area. Okay? Now here you can see that. So I just add one of the method blue. This is the area right here. Now, you can see here I'm just getting the class. And the class here is, you may say that this is a circle number one and that will implement employment. The shape and the shape here is interface. So here we create a glass dead simply meant the Shape interface by putting the area. Okay, now you see how, now here I'm right, that is the private. And the private Here is a keyword. Setting up my variable private. Now here I have a right that this is the radius right here. And then after that here I am writing this in the public. And the public Here is a function and here I'm just using the constructor. Ok? And here you can see that that is a construct. And here I'm just passing the value of radius right here. Now, after that here you can see that I have to write that this, and this here is the radius and the radius which is equal here I had read that this is radius, okay? And it's closest chord right here. Now here you will see I have great public, public function area. Okay? Then after that here you can see that I helped write that this is return, and that return here is this keyword. And then there is returning the radius right here, which is this Tarik, all this keyword and that we get the radius. And the radius here is multiply by value of pi. Hopes you understand now that how you can get that areas. So this is just a formula of the radius we're getting right here. Now after that here you can see that I just empty married one of the another class. So class, which is a rectangle and their wills employment, which is a ship interface right hitting were there and the ship under phase here is area. And I'm just getting this area as well with a difference attribute. Hopes you understand now. Now here you can see that I have right private. Private here is red. Then here you can see there I have read the private, the private again. And the private here is height. Okay? Now here you can see that I have to use public. And the public here is the function and the function underscore construct. So here you can see that that is a constructor or loading because I'm just using two constructor here. You can see that the red and here I had right, this is the hydrate here. Now, here you can see that I have read this, which is the bad. And the voltage is equal to here I have read and this is the website right here. And here. This is a slash sign. Now, here you can see that that is the height. And here I have to write that this is also a hydrate here. Close it seemed column. Now, you can see that after all loading this construct right here, I have to go to right? Public. Public here is the function and the function here is the area. You can see here. I'm just using the same function again, one time to time. And this is the implementations of the same function which is an interface helps you understand now. Now here you can see that that is a return. And here I read this. And this, here is the vector which is equal to multiply by. Here I have read this height. Okay? You can see here why this is the formula of getting that rectangle right here. Now here you see that after that, I have to create the object rectangle right here, which is equal to new rectangle. Okay? And this is now haired boy, the value 44. And then close the score right? Now here I have a great equal. And here I have derived that there is like OK, we're, there will get the idea. Meteorites are area function right here. Hopefully you understand that how we can get it right here. No offer that here you can see that I'm just creating the circle here. So here you can see that OBGYN circle is equal to new. And here I would write that this is circle number one. Okay? Now here you can see that if you wanted to provide the values of the circuit and simply demonstrating circle of eight. Ok, and here you can see that I have read equal. Then here I have read that OBJ and OBJ circle here, and here I have to read the data. We get the area function right here. Okay? Now, the main concept is here. Firstly, you can see that this is actually, you can focus on only on this public function area does because here the polymorphism just because of VR declaring one function which is a name of area. And we are reusing the many time with a different story, many times with the different forms, that idea. Hopefully you understand now there are things which held the many forms and different in, you can say there are different data types in different venues to discard the polymorphism. No hair. I'm just running the score. And here you can see they're made for that. And I have said that this is equal. Equal is the beer HEC. Ok. And now here I have the right equal and equal here. And close this code right here. Now semicolon and the same color right here. And I'll just run this code. You can see here this is the revenue of the rectangle and this is the menu here of the circle right here. Hopefully you understand that how polymorphisms work in a PHP programming language. If you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture.
77. Abstract class and Interfaces: Hey guys, welcome to this lecture. In this lecture we are talking about the interfaces and the abstract class in the PHP. The class that is fully abstract, we discard an interface. Any class that implement this interface must use employments, keywords, and all the methods that are derived in the class must be, must be defined here. The abstract class is the way of hiding the information in the abstractions. They should be at least one method that must be declared but not defined. The class that's inherited. This abstract class needs to define that mattered. There must be an abstract keywords that must be returned before the class of the interface, where the interfaces support the multilevel inheritance or a multiple inheritance. And abstract class IS didn't support the multiple inheritance. This is a key benefit between the interface and abstract class. The interface does not contain the data, but abstract class contains the data members. But on the other hand, interface doesn't contains a data member interface does not contain the container, but abstract class contains containers. The members of the interface cannot be heartache. But on other hand, the only complete Members of the abstract class can be static minima that here I have to show you about the interface and abstract class in the coding area. Here, you can see that v already is turning bowl. Dandruff is an abstract class and V had used debt. Now here you can see that I have right interface, inter phase right here, which is a keyword. Then here you can see that I just write. Let suppose the interface here is abc. This is my first type work printer phase. Then if you want to declare one another interface where you have write x, y, z. Okay? Or if you want to add one other interface here, so ABCD here. So this is up to you can add any of the interface right here. Now here, you can see that if you want to define the interface right here, so you have the right interface. Then here you have right. Let suppose the interface ABC, then that will extend one of the other interface like here. You can see that extend interface. And the interface here is, sorry, here I have right there, this is x, y, z. Then here you can see that a, b, c, d. So you can see here, I'm just extending these types of interfaces right here. So this is up to you can write any of the interface. So this means that hair, I just used a multiple inheritance right here. So this is just a concept of the multiple inheritance in that you already use abstract class as well. So declaring of the abstract class here is you can see that you have to simply write abstract. Then here you have the right class. And let's suppose a class here is animal, so you have to write it like this. And you can also use the abstract function as well. Okay, so here you can see there this is abstract, sorry. This is abstract and abstract here is the function. And the function here is let suppose this is x, y zed function. So you can also use your function like that in to the abstract class. Ok, hopefully you understand now that what is the difference between the abstract class and abstract function? So this is just a lectures for the overview of the abstract class and the implementation of the interface and abstract class together helps you understand now, if you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture.
78. Final Keyword: Hey guys. In this lecture we are going to talking about the final keyword in the PHP programming language. The final keywords which prevents the child class from or writing a mattered by prefixing the definition that define that. If the class itself is being defined final, then it cannot be acceded. How, in previous lecture you have seen that how we use them headed and how we inherited one class from another. We also saw how you could override a functions in a henna inherited class or inherited class to read every place that behavior originally employed. However, in some cases you may want to prevent a class from being inherited from a functions. You'll be overriding. This can be done with a final keywords, which simply causes PHP to throw an error if anyone tries to extend your final class or, or I'd your final function. You see according example. And you will see that how we can do that. Here you can see that I have write PHP code and then here I have good closest PHP code right here. Now here you can see that I'm just creating the final class and the final class. Let's suppose ABC. Now here I have to write that this is the public. And the public here is, I have read the name. Okay? So here you can see that how this class look like with the planet keyword. Okay? Or one another thing right here. Suppose I have the class, which is x, y, z is x, y, z right here. And here you can see that I had read that a final. And the final here is the function as well. Okay? And the function here is let suppose this is a function of x, y, z, and s. Okay? Now here you can see that I have read that. That will return. And return here is, I have read that this is the final word. So as you can see here, this is how you can write your final class and the final. But hopefully you understand now. So final is just a keyword. Okay, this is using a class. So why do v final keyword? So we use final keywords to preventing Damasio inheritance genes of our DOM. And that will encourage the composition as well. This is also forced to the developer to think about the user public APIs. And then we'll also for the developer to do Xing, An object. Public API has been a final class, can always be made. Extending will remember that, and that is break and encapsulations. You do not need that flexibility and you are free to change the court anytime with the help of final keyword. Hopefully you understand now how we use them and why we use them. If you find any the problem regarding this lecture, please let me know and thanks for watching this lecture.
79. PHP MySQL Connect: Hey guys, welcome to this lecture. And in this lecture we are going to talk about the PHP database connection. That database is one of the important of any programming language to deal with a dynamic Project and the datum management components. And we need to have the database for that. The PHP supports the various kinds of databases. Connections with. My SQL is the one of the most widely used relational database management systems. And it is mostly used with PHP. And considering the term database connection in the PHP MySQL itself have the various ways to make the connection in the applications to play with the database operations. Like you can see here, anyhow, the dynamic website. And here we have some kinds of servers where these files are kept, OK. If the user is request to the server. So server will give the front end, the web, front end of the website to the user. If the user retrieve some of the data from the server to this website. So here, this data is kept in to the SQL where this website, such desert, ah, with the help of SQL into the server and then responds back to the user. Hopefully you understand now. So how to connect the PHP database? Before making the connections, we should have like firstly, local host name, database name, database username, and the database password. We will not move through the database name right here and we will check about the database in next lectures. So here we have the three types of connections where what we clear it with the first one is you can create with MySQL core or you can create with the MySQL procedure language, okay, then you have to create with MySQL object-oriented way and add last you had to create the connection with MySQL video. So PVGO is work with the various databases. Usually we considered this as the best approach out of these three. This one is considered as an object-oriented way of communicating with the MySQL database. And the moment we are creating, it's given us the object group div ID, MySQL delayed. So what is MySQL I instead of MySQL? Mysql is extension. What is improved version of MySQL ok. Where this MySQL is secured from the MySQL injections like this. My SQL and i means injection right here, okay, which is saved from injections. Here, you just turn with the examples of MySQL procedural connection that you can see how we created. Here. I have read PHP and then closest PHP tag right here. Here. Firstly, I had to create a variable. And variable here is db host. And DB host, which is equal to here I started, this is local host and my connection here is HAT. Hopefully your connection is not 80 just because of I am using two different types of database there, so I am just defining the port number right here. Hopefully you understand, okay, now after that, I just close this right here. So what is the local host? As you can see on the browser right here, we have the localhost and 8080 is my connection name right here, then PHP, my admin. So PHP my admin means that here you can create your databases as well. You can write your kidneys as well. So this is just PHP, my admin for the XAMPP asthma. Hopefully you understand now. And you can find ILO fuel database connections right here when we are creating the database connection. So we are creating art first with the help of MySQL command. But I will show you that how you can easily connect to your database as well with the help of this XAMPP server. So just leave it right here. And here you can see that I have read DB username. So DB user name means that if you are, if you, if you were data-based, how no username. So by default, the user name of your database, how rude. If you are working with like cPanel section on your, if your website is live. So then you need to have this username. But do you write on the cPanel as I would tell you about that in next upcoming lectures as well. That how you can upload your website to the cPanel and how you create your connections at how you create your database. So this is a separate topic, but if your website is live, so this database name is very important. Then here I know DB password right here. So you can see here, I have to write that db, this is the password. So at this stage, I don't no password here for the XAMPP server because I didn't keep any of the password. Now here, I'm just creating one another connection. And the connection here is my variable. And now here you can see that I have to write my connections to this database for here you can see that this is MySQL and the connection right here. Now here I have read this db host. Then I'm just calling my username. And then here I have to go all my DB password. Okay? And then it's closest score right here. Here you can see that this is just connection right here. What I am disputing the connections to this database, okay, you can see are these all of the variables, and I am just considering the connection of that. Now after that here you can see that I have to check the connection if created or not. Here you can see that I described and nod. And then here I have to write Nard connections and ran, I just run this score. So here you can see that fascia right dye. And the dye here is, you may say that this is here. I'm striking that connection is fair. Okay, and then here I have to concatenate my SQL library, underscore. Connect underscore arrow right here. Okay? And I just close a score right here. And I disclosed score right here. Helps you understand now or here. Firstly, I have to write this into the brackets because this is an I, a function and closest code right here. Okay, now here you can see that no offer that. Here you can see I have to write equal. And the equal here is I said that connection for the database is created. And I scroll score right here and then I just run this score. So you can see here. And hopefully did little unmistakable that yes, OK. Here you can see there this is Connect. Okay, now I'm just running the score again. So here you will see that. And here you can see that I have removed this album for the initial stages keyword right here. Okay, now here when I just run this code, again, so you can see here the connections for the database is successfully created right here. So this is how we create or my SQL connection with the help of procedural language. Now here you will see that I just go to Create one another connection right here we are PHP. And here I have to write this, or I have to commend this as. Now here. I have two closest common. Okay, now here you will see that. Now here you can see that I'm disputing the object oriented programming model. And here we have seen connections name right here. Then after that here you can also create, this is the alto, same connection right here, okay. Now here, you can see that here you will write that there is a new SQL connection with the help of new keyword. So here you can create an object to it. And then my SQL injection underscore connect. Ok, so here you can simply remove this connect right here, okay? And then here you can see that. And I just copy this again. Pistol, right? You know, if connection and that connection and this connection with the Kinect. Okay? So this is the function of the connected Anna right here. Now that will die the connection and you have group, remove this connections from here and here I will simply can't get innate connection. And the connection here is connect, underscore, add or right here, okay? Now here you can see that how you can create this, the object-oriented My SQL injection. And here you have to ride that cleanses score. So here you can see that the connection is filled just because of the already cleared the connections of that as OK, here you can see that because of our connection is not created right here. I just remove this sign from that. So here you can see that I have to run this. So you can see here the connection for database is successful 10K theatre right here, just because of I just write a naught sine here. Because that I just said that the connection is already queued. It should simply not sign here, should not connection which is connected right here. If you write this simply, you have to create your connections. It, you know, at the last, turn to our next example right here, which is the PHP tdo. Ok here you can see that and I just close this code right here, okay, now you can see that. And here I just remove this. And he says, well, okay, now here you can see that here I have to write a new PHP connection. Firstly, I have to close my comments right here. Now here you can see that IS closest. So this is a new PHP connection here where I'm standing right here. And you will see that that there is a new PSP connection. And here you can see that costly copy these things right here where I am is already created as the variable. You can see here. We are the local host RUP and the password is seen. On the place of this connection idea. I just use exception handling. The exception we're tied. So here you can see they're closely. I had the right connections. And the connection which is equal to here, I just write new, new hair is PD. Oh, okay. Now after that here you can see that I have right MySQL. And then here the Firstly that will create the host host, which is equal to here. I just get the host images DB host right here. Okay? Then here you have read that. Like here, right? This is your username, which is DB. Db here isn't username. And then here I helped write that this is DBN, the password right here. Okay? I noises closest chord right here. Now one thing is missing right here, which is a db name means that database name right here. And we will learn about that in next lectures when we are just creating the database. So here you can see that I have read connection and the connection here, which is the set attribute. And here I have read that this is PDU, and then here I just write it a double TOR underscore here I write that this is error. And the error here is the more. And then here I just write P0. Then here you can see that I have right adder mode and add a mod underscore air I'd ride exception. Okay. You can see that this is just an editor mode, underscore exceptions ITO, and as close as coordinate here. Now here you can see that I had to write equal and the equal here is database connection created. Okay, now here its ratio sign. Now I just closed the score ratio. Now, firstly, I have to try this exceptions. And now here I'm just catching this exception right here we are at o and then execution, sorry, exceptions and exceptions variable here is E. Now here I have read equal and the equal here is I have dried connection is failed if the connection is not created. Now here I have read that this is the variable E and get the message as well. Okay? Now here you can see that my connections for that is created right here and the equal right here. This is equal. So before ending that here you can see that I have derived this as a conditional mark and then close this, remove this. And here you can see that offer that I had read the comma right here. Okay, when I just save this, and now here I'm just running this code again right here. So you can see here my database connection, sorry, created successfully. The question here is, where Database Should I use my sequel or PDU? These bolts are the object-oriented view of the database connection using PHP. And we can consider this as the present and the future of the database connections. But choosing out of these two is all about what kinds of You need to have that you are project it. There is a MySQL database only, then you can go with MySQL. But the moment at the possibility of the databases is changed. For example, Lake from MySQL, MySQL server, or any other vendor, the PTO will be done. Best options, like if you want to move my sequel to MySQL server. So you have Gu, move cuda, VDO, okay. This is the best options for you. These both approaches supports the prepared statement while writing the acuities to do database operations. Hopefully you understand now that how we can create the different kinds of connection with a MySQL database. Hopefully you understand now if you put any of the problem regarding to this lecture, let me know and thanks for watching.
80. PHP MySQL Create Database: Hey guys, welcome to this lecture. And in this lecture we are going to create our data-based in the PHP and MySQL to, is to clear your database. First one is to clear it with the coding. And the second one to go to the XAMPP server, localhost PHP, my admin. And then here click on the news. So here you can see that simply you have to write your database name right here. Let suppose I am disputing the data-based here is PHP. Then we're eyes red PHP course one, okay? And then somebody I have to clear this job is so your database file is created right here. This is very simple way you have to create your database and then you have to write your SQL QD is with that. Okay? Now here you would see that if you want to create something with the help of coding, so you have to write that simply PHP chord and then closes PHP code right here. Nor confused about the new settings. So here I am just giving the new setting of that. And this is just a graphic sorting when m is changing right here. Now here you can see that I have to copy this code. This is a copy this code right here and pasted discord because discord is using same as like here. You can see that I'm just creating now every new 2T of MySQL with the object oriented is time. Ok, now here I have the right MySQL. I, okay, now here you can see them. And here you can see that I had to create the database connection. Then your time is username. And then here you can see that this is the database password right here. Now here you can see that I just write that if an if here you can see that I had read connection. And the connection here is I have to write that this will connect. And this is to connect underscore eta right here. So simply use the Dykema and here I have read connection is fair. And then here I just concatenate my connection. And the connection here is, you can see that there is connected and the Kinect underscore n. Okay? And then there's closest score right here. Helps you understand now. Now here you will see that I just remove this core from that. And here I have to go to the connections grading right here, or our connection is created right here. And now here we are going to create our database. So here I just write database, which is my variable here, which is equal to here I just write SQL commands. So the command is using to create the database. Here is, here I just write create database. This is database. And then you have write your database name, which is I'm striding BHB course right here. So I am just writing this in this model name. So PSP core, so this is not mandatory. You have greatest model or capital. This is up to you. You can write any name right here. Ok, here you can see that I just run acuity. We're create the database which is a name of PHP calls. Okay, and then I just closed the score, right? And now here you can see that I have to write if, sorry. If, and if here is connection and the connection will run the acuity of that, ok, and here I am right that this is the database as the variable, okay? Which is equal, equal to true. And then here I have write that equal. And equal here is database is created successfully. Okay? And then i is closest score right here. Now here I will go to the else statement. And the else-if statement here is, you can see that I just write equal. And the equal here is I have to run an error right here if the database connection is not created. So error in creating database connection. And I just close the score right here. And then here I have to concatenate then connection and the connection here we'll run the error right here. Okay, you can see now, now add the last here. I heard right there, this is connection and the connection here is close. So one method which is using to close your connection right here, which is mandatory after creating your database. So that connection will close your database right here. Hopefully you understand now that how you can create your connection to your database. And if this database is created, so how you close your connection right here. Now here you can see that I just run this clear database command right here, sorry, the file right here and here you can see, so you can see that my database is successfully created. And when I just searched this into the localhost and PHP, my admin, refresh this. So you will find that this is the PHP course right here, what I'm creating the database name here. Hopefully you understand that how we can get our database with the help of PHP and the according files. Now, if you not understand this, so please let me know and I am just explaining this court for you guys. This is our old code, what we already work with VR. I just said the connections name, username, and the password. Now this is just a simple object-oriented way of connection right here where I just write a new. Then this is valuable of the connection and MySQL then host name, username, and the password. Then here you can see that if connections will be if connection, which is not created here, that will create an adder right here, which is connection is fit, means that if connection is not created with the database, so that will generate an error right here. These are our old code right here. Now here you can see that I just create our database. This is the variable right here. Now this is the MySQL command. So here you can see that create database. So firstly, you have to write create command and create command will create the database with the name of PHP course. Then here if the database is created successfully, so here does do that. We'll get the connection right here. Then that will run the QT, and then that will run this QT which is saved in this database. And I just said this value as a true means that this database Judy will run in any case. Now if this if this connection or if this database is created successfully, simple lead on this message and if this database is not created successfully, so that undisputed, after creating the connection, which is a mandatory commands, you have to close your connections. Remember that? So you can see here, I just remove this and run this code right here. So you can see here edit and creating the database connection and kinda clear because this is already exists. So here you can see that I just, if I just closest connection. So connection will continuously running right here. So this is very important that you have to close your connection as well. So if you cannot close to then leave it, it's up to you. So this is just our database creations in the PHP and SQL. If you find a new problem, garden with this lecture, please let me know and thanks for watching this lecture.
81. PHP MySQL Create Table: Hey guys, welcome to this lecture. In this lecture, we are willing to create the tables into the databases. The two-way that you have to create your database tables. The first one here is you have to go to PHP. My admin via your database is saved. Okay? Then here you have cleared your database. And another one here is you have to write your PHP code or run your SQL or sequel queries. You can see here this is my PHP course. And here you need to run. You're curious, or you have to clear geodatabases. But VR focuses on the according lecture. So that's why here you can see that under skirting my databased or sorry, I'm distributing my database tables into that. To creating the database. There is a SQL query which is create table. Firstly, you can see here, I'm just telling you one thing, again, one another thing right here. We again see that I'm just connecting my database. Do this table or this chord. Here, you can see that I was writing SQL MySQL I, this is MySQL. And here, after that here you can see that I have read that firstly, this is the local host, which is my host name. Then here, this is the database name, sorry, data, database username, which is empty. And then hear the story which is root and then password Here is an empty. Then here offered that I have read that this is PHP course. And then close this chord right here. Hopefully you understand now you can also create a Laker, our old example, you can see that that create database. So you have to also call these all are you have nuclei, these are variables and then QED. Now, connections like that. But this is very simple way to write your connection. So here you can see that I'm just writing if a statement. And if here you can see that dollar sign connection and the connection here is equal, equal to false. Or equal, equal roots or Cl2 will generate one and as a result, and generate his own reasons. So here you can see their eyes red dye, and the dye will generate an error right here. So error here is coordinate connect. Ok. Now after that here you can see that I'm just concatenating dollar sign and then connection here. And the connection here is equal to connect. And then connect underscore adder right here. Okay? And it's closest score right here. Now here after this if statement. So after that here I'm just creating MySQL table. And here you can see that I have to run the SQL command right here. How you can see that I am is creating the SQL table. Katie and her eyes, right? This is C. And the SQL which is equal to Harris ride create. Table, and the table here is the name of let suppose I'm illustrating this is the human, and then this is a table name right here. And after this you can see here I have Greg, that firstly we held the ID and the ID which is an integer type, and this is an integer type which is not None. And here the primary key. So where does this ID not null and primary k-means here when you are creating the table. So you have to create the command and use this command right here, which is a cleared. Then you have write your table. And then this is table lineages human. Then here you can see that I just take ID, which is integer, which means that firstly, how the ID and the ID is not null means that you cannot leave this ideas blank. Then here you can see that primary key. So when you are creating the database cables, so there is a primary key. So primary key Always be unique and not null, which means that every new idea is unprimed, dQ or every new name, his own primary key right here. Then after that here you can see that I have to write that this is our TO underscore increment. The increment here is, this means that our two underscore increments work like our increment operator via URI's L1. So after this one ID you have write one plus one, which is equal to two, then two plus one which is equal to three. So that will go like 456. And every new name has its own unique id, which is the primary key. So primary keys always be unique and not. Remember that. Then here you can see that after that I have read comma and then here I have write that this is first name and the firstname ij is equal to r char. And here I just write this as bar charts hardy. You also create some text right here. So text is also using for that as well. And was mostly here. You have to use VARCHAR. Okay? This watch, I mean, you have to create the variables collector as well. Ok, now here, and for that, I just said that this is also not null right here. Okay? And then here you can see that you have to also write that this is the last name and the last name also here is var, char and the wash our hair is 30 or $2.5. This is up to you. You can write any of the march her idea and not null. So this is just a limit of your this wall right here. Then offer that. Here you can see that I have to write that this is address and the address also here is VARCHAR. And varchar here is I just tried to double five, which is not null. Okay? And if you want to write or if you wanted to keep this. As this is not unique keys. So here I think so, yes. Okay, now here you can see that after that I just write email. Email is one another pebbles role here and here I just write varchar. And the char here is, you may say that this is 60, so only 60 characters overtake and there will not null. And unique. Unique means. Every email here is unique, so no duplications is required right here. Okay, Hope so. You understand now. Now here you will see that after this, I have good right semicolon to close this statement right here. Now here you can see that if dollar sign connection and the connection which is equal to lambda q eight here and the QT here is you have to see that this QT is SQL and that will equal to true. So similarly, you have write your eco statement and here they are successfully created. Okay? And then scrolls the score right here. And now here I have write equal and the equal, sorry, this is the L statement. And the L statement here is I have around this equal and the equal here is I have read that adder. You create tables and that will get SQL. And here you see that I tried this connection. And the connection here is edit. So that engendered and connection error right here. Hopefully you understand now that how we can run this tables data or how we can create these tables into the PHP. Now here you can see that I started this create do tab is yes pseudo table. So you can see here when I just run this, so the tables are successfully created right here. So when I just run this core, so you will see that and I'll rephrase this. So you will find that we have the table Human. And if I just explore this, so you can see here we have the column plus d column here is address. Then we here we have the colonised email, then here we have the columnist plus name, ID and the last name. You can also check the index thing right here. Indexing on the email just because of the email is always be unique. And here you can see that indexing on the primary key just because of that recheck, the primary key resolve is not null. And here you can see that yes, this is a table list here you can see that ID, first name, last name, address, and email as well. Hopefully you understand now. Now if I just click on index right here. So here you can see that this is the key, word is the primary key here, and that will also show me the three here. And this is the auto-increment here you can see that I just said this ID as the arc length element and primary key results for not null. And you can see here then variable firstname here is VARCHAR. Then lastName is VARCHAR. 30 addresses varchar routable five, email is March are 60 and that email is unique. So that's where that will be the key off you need right here. You can also check the relational views of that. So you can see here this is a relational view and this is a table structure. You already seen Zack or if you want to run this here, so simply click on that. So here you can see that I just copy this code right here. And here you can see I have to run this core into that. So here you can see that I have to remove this. And now you can see that I'm just creating that table again. Here. Let suppose this is our table for like person, because this is human and person. And these all are the scenes right here. And I just click on go. So you can see here, my all keys are inserted right here and there is another table or this person right here. Hopefully you understand now that how we can create the tables in your database. If you find any of the problem. According to this lecture, please let me know and thanks for watching this lecture.
82. PHP MySQL Insert: Hey guys, welcome to this lecture. And in this lecture we are going to talking about how you can enter your data into the database table. Or you miss here, that would be hard to Windsor. We have run the insert here, a key or is using which is insert into. This means that you have to add some of the information of some of the data into your database. As you can see here, this is our old lecture chord, which is, I am discretizing the connection. Then this is, if this connection is fall, falls, the dad will simply die the connections, which means that that will generate an arrow right here and to stop the execution of the next programs. This is our own court. You can understand that. Now here you can see that I have right if connection, which is running the QT of SQL, if this is true and that will successfully run. So that will generate an eco statement if is not, so that regenerate an adder right here. So this is all cord, so don't need to write it again and again just for seeding or time. Now, here we have to come to our database, KT, which is in CPU. Here you can say it is right, insert, which is my variable here, which is insert here. And here I had to learn my key, which is insert, insert into. So this is a command which is right in CSER two when you are just adding the deuterium to the table, then heritage write insert into human. And this is my human and the human Here is my database table named. Firstly, I have to write forced name, which was the first column of my database. Then her eyes right lastName, which is the last name column of the name. Last name column or column names. And then here I have read this IP address and the added offer, this adders, I have write email. Ok. So here you can see they're not adding the ID right here just because of IT will take by default and that is the autoincrement. Okay? Now offer this here. You can see that I have to create or write the values. The values here is firstly, I have to write the name of the columns right here. And then after that I'm just setting the values to that. So here you can see that the values are here, the values here. Let's suppose the first aim is Bob and offer the second name here is David. And then here you can see that after this, here we have the address. So I just write that. This is like her London and this is UK right here or London, UK right here. And then after that here you can see that I have to write that. This is x, y is there and they'd email.com. Hope so you understand now. And then close this code right here. So I just simply then a candidate here which is in R2 and exert who here in the table name human and which is the firstname line right here. Second lastName, address and email right here. Okay? After this, you can see that I'm just writing the values to it. And the values here are, so you can see, here is. This is the values and the capital. So you're considered these are the values right here. The firstname here is Bob, the last name here you can see that that is debit. And then after that here you can see that I just said the address of that and then email. So this is the sequence wise. Okay, now here you can see that here, this right here is right, records are successfully updated or inserting. Ok. Because update commodities on another commodity. Now after that here you can see that I have who I heard, I just told you that. You can also close your connection as alterity stride connection, which is close. Here, you can see that and I'll just close this code right here. So this is the connection close right here. And yes, ok. This is fine. Now, hopefully you understand now that how you can insert your data into the database table. Now I just run this code right here. This is file and insert data and then run the score. So we have an error in line number 21 and the line number 25 right here. So here's a line number 21. So line number 21 here is yes. Ok. This is Yes. Okay, here we have write insert. Ok. And here's a lantern 2525. Also insertion hearing. Again. Now it's fine. Now. Now I just run it again so you can see here record are successfully inserted and I just refreshed this XAMPP server. So you will find in the PHP cores and then human. So here you can see that you, yes, you will find the record which is id one plus name here is Bob, lastName David, address non-UK. And then email here is X, was that ad that it emailed or calm? Now here in last lecture, we had seen that I just set email as a unique and integer as the primary key and R2 increment. Now here you can see that I have read Bob one David, and then you can see now when I just run this code right now. So you can see here that you could not deer database into debt KD, which is the duplication of this email right here. So you can see here my discord, which is the unique, is working right now. And then here you can see that I have to write this number, x, y, zed one, and then run it again. So that is the record was successfully inserted right here now is just run this code right now. And you can see here that we'll inserting the key. So it will take the failed attempt as well. And then that will sign the idea of hazard. Next entity that will assign 4-5-6, 7-8-9. Okay. Now here you can see that I just simply cleared the Insert who comes into your database. Now here, you can also create the multiple records as well into your database. How? After finishing that. So you can see here, I just copy this and here you can see I will paste there. So here I just write this as Bob to David to distributed the same XYZ. Cool. Said the comma, then pasted again. So here you can see that Bob free near three and X1, X2, X3. So you can see here I just write three types of record here, and this is also duplications. So both four and this four right here. Okay, now you can see here, I just save this. Go to the browser, refresh this. Okay, fine. Notice check this. So you can see here these all multiple records are also saved into the database right here. Hopefully you understand now that hall V can insert our records to the databases right here. Now, you can see that these all are the database insert command or time distributing right here. And hopefully you can understand now. So anything you can now not understand according to descend command in this lecture, please let me know and thanks for watching this lecture.
83. PHP MYSQL User insert Record with front-end: Hey guys, welcome to this lecture. In this lecture we are going to create some of the basic form where we can add the data and this data will be inserted into our database table. Let's just see how seemed like or all examples. So I'm just creating a form which is the action here is you may say that the actions of that file, you can see here I'm disputing Goofy allergens are required front-end and back-end right here. So here I said observed this record into, i had read insert into this recording to the backend dot PHP. And the method I'm using here, which is the post mattered. And I'll just close this code right here. Now here you can see that I just said one of the paragraph tag right here and insert. Yes. Okay. Yes, I just close this. And now here you can see there an I2 said firstly a paragraph tag. So my paragraph tag here is, you can see that firstly, I have to set the label, and the label here is my tag. This is a label tag. And then you can see here I started labeled four and here which is equal to IS right there. This is the fourth name right here. Okay? Then I disclose a score right here. And here I'll just write that this is the first name. Now here, my label is closed right here. And this label is shown to the browser as you know. And now here I'm just taking the user input. And user input is a type of text. So it uses a tight ball text right here. And then after that here you can see that. And then here you can see that I had IS certainly name. And this is the name. And the name here is I have to write that this is the first name. Okay? Then here you can see that I set the ID. The ID here is, so this is forced under underscore name. And the ID here is this force known as the ID right here. Okay? Now you can see that I disclose the score right here. Now I just copy and paste this code again for the last name. So this is for the last name. Then here I said the last name. Then this is also last underscore name. And then here you can see that this is also a last name right here. Okay? You can see here I just get two entries right here. Then here you can see that I described that there is for address. Here, it is also for address, and I just remove this name right here. Now here I have to write that this is for address. And then this id is also for the address right here. Okay? Now here you can see I just cleared this field for the address as well. Okay? Now after that here you can see that I just created one other field for the email as well. So this is an email here you can see that this is the email and this is address here. And then here you can see that this is the text, ok, fine. And then here you can see that this is the email as well. And here I have read that. The email address. And this is also an email address right here. No. Aired last you can see here my three sorry, four entries are complete right here. Where are the columns of the database tables? Now, at the last Andrews, taking the user input is a type of submit. And then here I just provide the value right here and the value here which is equal to, I have read that this is the value of submit trade here and I just closest chord right here. Okay? Now here you can see that I have to run this front end. And then here you can see there. So these are just our tables when I am disputing right here. And when I just insert this answered aniyo tend to this table. And so that will simply shows into or saved into the database files. Now, I just go who work with the backend plan? Same like our old examples here you can see that just leave it here. You can see that I just write insert into command and insert into the Human. Okay? So with the help of that, we can insert or daytime Do it before inserting the data and do it. Here we need to create some of the variables right here where I have to create that this is the FirstName. And you can see here this is like yes. Okay, this is, you may say that this is a first name right here. Then here you can see that after this, I'm just creating another variable for last underscore name right here. Then here I have the variable name here is, you can see that there is just address right here. So this is the address. And add the last here you can see there are my 43 for the entry. Here is the email. Ok. You can see here. Now here, my, this variables are completed right here, and I just get these variables from the front end. And here I just write that here, this dollar sign. And then here I have to write, create the connection and run the cuny, which is a real underscore is string. So as you can see here, I just write here which is underscore. Underscore is string. This is, you may say that this is a definition of the real underscore escape underscore string, which is using in my SQL I. And this function is a special character into the string for use in the SQL query, which is taking into that a call to current character sets of connections. So you understand now, now here I just said that request right here. So I'll just write that that request, the data from the first underscore name. Hopefully you understand now. Now after this here you can see that I have the right that, that same Katie and seem k1 here, here and here as well. Okay? And here, which is equal to, equal to and equal to sign. Now here I have read that this is the last underscore name right here. And then here we have arrived at this address. And then here we have to write that this is the email. Hopefully you understand now. Now here I'm just quoting the values to it. So here you can see that I just get the data from these variables. Okay, where the user is in portrayed here. I'm just setting the security as well with the help of real underscore escape underscore string, which means that that filled simply encrypt this data, okay? And that will request the data from these farms. Now here you can see that I'm just using the enzyme to Kumar. So here the values are. You can see that the values here are and setting the values we're ice, right? That this is the force underscore name. Then here, after this you can see that I have read that last underscore name. Then after that here I just said that this is address. And at the last here you can see that I heard that this is the email as well. Okay, now here you can see my data when I'm just, I just want to insert so simply I just use inCircle Kumar and this variables right here. And here you can see that I just insert these all refreshed it. And here it is, right, this is bob. Five. Then here I just write David and David Right here. Address here is USC and email address here is abc.com submitted this. You can see here the court are successfully updated. When I just refreshed this, go to the PHP course Human. And here you can see that. Here you can see there this is the first name and last name, address and email as well. So here you can see why this is show me the record of dislike. Because you can see here I just creating this as the variables. So here these all are the variables right here. And you can see that this is the limit as c If this no-hair ran this again. Here we already have. You can see that here I tried. Hi, hello. Here I started to USA and then here it is right high at the regimen Lord com submit this record is successfully submitted, ran this course. So you can see here, hi, hello, USE AN hired the G-Major chord. So here you can see that here we just add simply the values. But here when I just add the variable science, so that will get the values of it. You can see here, hopefully you understand now that how we can create our forms and how we insert the data with the help of that forms. You can see here, if you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture.
84. PHP MySQL Select: Hey guys, welcome to this lecture. And in this lecture we are going to talking about the select clause in the PHP programming language that hall, we can select our class with the help of database. So here as you can see that we are using MySQL. And here you can see that I just create a connection. And then if connection is failed, so that will simply generate an adder right here. Nothing else. The Pu is, you can select your data from your server here you can go to them. Php course then select here. And here are some commodities using for that is just select is Tarik forum. And then you have write your table. You can see here V her only how the two tables name right here. But if you are working with a lot of tables, like a 100 tables, 200 tables. So their command will be working at that stage. So here I started goals, sorry for that inheritance, right, go. So you can see here, select the steric from human. And here I have to write that. And you can see that here I have write, select static from human. So that will select everything to me from the human right here. Now here you see that I select Tarik and I just removes tragic inherit straight select first name. Okay? Now here you can see that this is the first numerator. Ok. Now go. So that will only select the first name of your database tables entries right here. So what does it mean is Tarik means select every teens from your database table right here. Now this is one way you have to select your statements or you have to select your records from your database. Now hear me just turn to the coding area. According to the coding here you can see that how we can select some of the records from your database. So here you can see that I have to write that. This is the select right here. And select which is equal to here is right, that select and select here is I have to write ID, ID from human. I just wanted to get the IDs of the table human right here. Now here I just write that variable show and show which is equal to Harris, right? That my, this variable connection. And then here I just run this cube right here. So you get here, you can see that the QUT and the QT here is, I have to write that this variable select right here. Now here you can see that I illustrate, if Sure, sure is my variable right here. And if Show, which is running the rows right here and it goes is already selected. So he's writing this number underscore roles because we are working with the IDs age Harris, Right. Okay. Now here this is the if statement. If this command will run a cutie and then the cuticle match from the number of rows is starting prom zeros. So here I have to print the while loop. While loop here is I have to write that this is, let's suppose and just writing that a rho which is equal to area is right, that this is okay. And here that will fetch the record. So here I just write that simply you have great fetch and fetch underscore C-H-E-N functions to fetching the required right here, Okay, now here after that you can see that I just creating eco statement. And the statement here is you can see that I have to run the ID right here. So firstly, I have to write ID. And then after that here you can see that I have who can't getting it, this ID right here. So I can continue this ID right here. So you can see here, I have great dollar sign and then get the row first. And here I have to get the ID of it. And here, just simply right. And then here I have learned this BR tag right here, okay? And then here I disclose the score. Now after that heritage to go to the else statement, Alice else's segment, if no roses available inside this. So you have to simply show the option right here that no record founded. Okay? And here I have write this right here. And then closest chord right here. You can see that when I just run this score right here. So here you can see this is in Chrome browser and here you can see that will select the IDs only from your this table right here. Now here, I just go back and here I inside the select command Eisenstein, the multiple selection right here on select Ids, as well as the name. So you can see that that will select the name as well. So after that here you can see that isolate dot and here I just write that this is the name as well as getting the name. And then her eyes tried dollar sign and draw. And draw will select first name as well. Okay, now this is a dark side to save this record over the browser, refresh this so you can see here ID, name is Bob. Name is Bob, one ID for, name is Bob for I35. Name is Bob K23 and seems like he's like these all hopefully you understand that how you can select, you are curious. You can select your record from PHP. And MySQL period is right here. If you find any of the problem right here in this lecture, that any plant you understand that how you can select your SQL query on how you can use your PHP code to select your SQL query if you find any other problem regarding to this lecture, please let me know and thanks for watching this lecture.
85. PHP MySQL Where: Hey guys, welcome to this lecture. In this lecture we are going to talk about the where clause in PHP and MySQL. The where clause is used to extract only those records. That pulpit is specific conditions. Like you can see here, that there is a class and I just run this score. So here you can see this is my old court where I'm just executing right here. You can see that. Now here you will see that if I have the table right here, there, the table column which is ID, then this is fore limb, or this is firstName, lastName. You may say that this is address and air the last v, how the min, okay? The class is used in this case, lake here, you can select a command there. The firstName is like that. Or you can say use a select command via your ID is five, or you are addresses this, or you are GMail ideas. So at this case, you can use world-class legacy. How you can see that we already created the select command right here. And with the help of this select Kumar, We have to select our record right here. You can see that. Here you can see that I just remove this heritage sites select is Tarik from Hinman human. Here is my table in the database and here I just used their class. We're forced first_name, which is equal to Harris, Right? So that will execute the only or the Curie only via the firstname, which is equal to the bulb right here. Now here you can see that when I just run this, so here it will run only the cuny here, which is the id. And the first name here is Bob. Only. Hope so you understand now that how it will run this code right here. So you can see here, you can see I just only right here, which is setting original executing the irony. Then this is the first name right here. Okay, now here you can see that if you want to run more tables or more columns right here, so simply you have to write rho and u is simply set your last name, which is a column name and age here. Then here I have to write that row and o, which is equal to here as right. Show me the e-mail and then offer that here. The row and the row which is show me the address as well. Okay, now here you can see this and run this. So here you can see that that will show me all of the entities aid here. Now, this is the first thing. What I am just showing that with the help of select command and just use the where clause as well to select the static from the human. We're the firstName is equal to Bob right here. Or you can set the lastname as well with it. Here you can see that I have to write that select. And select here is select, id and first_name. I just want to select the limited things only and then lastname as well. Okay. From their last name is equal to here as right there. This is OK. Let's just see now. So here we have an Edit right here that there is no last name of Bob is saved inside the database. So normally card is phone right here. Okay? Now here you can see that I have read David. So this is David right here. And now I just run this score. So here you can see that I have derived that localhost. And then here we can serve the PHP, my admin. Okay? Now here you see that. So this is from, okay, now here I just run this chord. So we have an editing line number 19 right here. Okay, leave this arrow right here, and we move through this PHP course. And here we have okay address and last name here is David. So you can see here that we'll find the ID here of the lastname as then. And here we have the email and address right here, okay, now here you can see that this is address e-mail as well. Now I just run this score right now. So I just remove this just because we do not need right here. And now I just run this so that we'll find in all curvatures are no expectations of that string right here. Okay, it's fine. In our school. And I just started this. So you can see here with the help of where Class V can get that it has. So you can run this VI or class here as well. You can see that select is Tarik from human there. So we are here is you can set the last name. The last name, which is equal to, you have to write that. This is David. Okay? You can see that now I'm just running the score right now. So you can see here that we'll select that David, we are the last name is David and select the record of that as hopefully you understand now that why we use a where clause and how we use veer class. So we are Clause when you are just getting the required data. You can see that you can only make if you had the cosines of the rows like here with the name of David. And if you want to select some of the unique role, so you have to use VR class at that state. So if you find a new problem, you got into this lecture. Please let me know and thanks for watching this lecture.
86. PHP MySQL Update: Hey guys, welcome to this lecture. And in this lecture we are going to talking about the update statement in the database. The update statement is used to change or modify the existing record in our database table. This statement is typically used in conjunction with their claws to imply the change. Who only those records. That's mad, that specific criteria. Let us suppose here you can see that you have to execute the update. And then you have grad your table name right here, and then you can set the values to it. Let's suppose certain the value anything. And then after that you have to use the Error class we did. And then after that, you have to serve the changes affect okay. Let us see how this is are all court where I just already started about this as a connection in the evanescent field. So this is an adder and if we can update the security, so here you can see that I just updated this right on update because I'm distributing the variable w. Here. Here you can see that I just can you update right here. So this is my variable and the variable name here is update. Now here I just write update which is equal to o. Here I write that update. And update here is human eyes update human right here now, offer that I just said. So such means that you want to set any of the values right here. You can see that, here, you can see after that here is right, that the last name, so lastName is my column name and last name. Like David. Okay. And this is a last name David. And here I was right there. Now here you can see that I just choose very commands. So where ID is equal to or ID is equal to three. Okay? Now here you can see that I just, I have to closest code right here. You can see that how simple is it? You update your come on with the head of both MySQL right here. Now, you can see that I'm just running this command here into the rotor. And here you can see that this is the update. And when I started this horse, you can see her record are successfully insert. So this means Eric order successfully update right here, okay. Now here you can see that I just run this code right here. And for this refreshing this piece, and you can see here, and this is our ID number three there. It said that David number one to David and they're just seeing this iodine from the David. For here you can see that I'm sworn pool changes ID for period four and said this name from high. Hello. Okay. And you can see that now air refresh this page, will update this record you can see here and not rephrase this as well. So here you can see that on the place of David for here you can see that I just changed the last name here, which is hi and hello. Hopefully you understand now that how simple you can ClinVar or you can update your record with the help of MySQL Katie. If you find any of the problem regarding the lecture, please let me know and thanks for watching this lecture.
87. PHP MySQL Delete: Hey guys, welcome to this lecture. And in this lecture we are going to talk about that. Holly, you can delete the database record or database table just as you insert the record into your database table. So you have group delete the record from database table using the delete statements, which is typically typically used in the conjunction with the class as well. So we're class take a very important role. As you know, that we are class anywhere, you can use the where clause does because of if you are trying to delete one entity or if you are trying to delete the Manny. So we're class is a very important role. Let's just see how we can delete it. This is, as you can see here, our core, what we already studied worthwhile is simply change the variables right here because I am disputing the variable delete right here. Okay? So this is valuable. Delete which is equal to Haram, is running the SQL command, we're eyes, right? This is delete and delete from your man. So fromm is a capital from human right here. And here is right there. The ID is equal to four. You can see that I just execute this command right here. Now. I just run this code right here. So you can see there delete, and then in the sort of cards are successfully updated right here, or a corridor successfully deleted right here. You can see here this is ID number for lesser number four into the database. So PHP, and you can see that human, and you can see that ID number four is deleted from this database right here. Hopefully you understand now that how you can delete some of the records from your database with the help of delete command. Okay? So you can also read the name as you can see that you can write this is the last name and last name here, which is equal to you have dragged that This is David. Okay, you can see that any we're the last name is David, so Devin believed that entry. So here you can see I save this and run this code right here, regard as you need to run this, so you can see here all that lastName there, david name. So that record has been diluted. Hopefully you understand now that how you can delete a record from SQL or MySQL database. If you find any of the problem regarding this lecture, please let me know and thanks for watching this lecture.
88. Age calculator in PHP: Hey guys, welcome to this lecture. So far we learned a lot about the PHP words, a basic object oriented and the functional programming language. These are some of the forms that how you can create your forms. We also studied about that, how you can create your SQL database to the help of PHP as well. Now it's time to work on some real life projects or real projects for it is using in the daily life. Here you can see that in this lecture, I'm just creating an age calculator in PHP that you can see how you can calculate your age with the help of PHP. So I'm just creating a site here for creating the age calculator. Here you can see that firstly, I have suppose a PHP tag right here. So this is my a PHP tag right here where I'm scooting right now. And this is PHP and discloses tag right here. Okay? So here you can see that I am creating if statement right here inside this PHP courts. So if acids and acid here is I just create post method. So post method here is I just want to create some of the burden which is the name of Submit right here. Okay, now here you can see, now I'm screwing up right here. And the form here is less support there and just adding the date and the month and the year as well. Here you can see I will tell you something more about the PHP and the front end as well. Here you can link some of your java script and the Bootstrap files as well. So you can see here venue or just linking some of the bootstrap file. So you have to write your calm tag, which is the name of link. Then here you have write your relation, which is this style sheet. Style sheet we will take in the CSS file. So here I stride REF, which is a tag for the link has well, when you are just linking your files, so you have the right edge reference file. Here. You can see that now I just write it as GPS wor, wor, and our backslash right here, I just write this is as tag bought dot Bootstrap and the Bootstrap right here, and getting the Bootstrap CDN right here. Okay. So Bootstrap CDN VR I described Bootstrap and destroyed the version of Bootstrap right here, which is for plan for 0.1 slash CSS. And here I have to write that this is Bootstrap. And main.css. This is one of the online file, what is available in this link. So I'm getting the design of that file right here. Okay? Don't worry about that. This is just a normal file when I'm just inverting right here. Now here you can see that I am looking at some of the front end right here. Firstly, I have to create a class. The class name here is here, right? This is a class name like here it is right, car, sorry, current dinner. So I just take one container class, or as you can see, this is the Bootstrap class right here. We are just scared the container of that. If you are a soldier sliver right here. Here you can see that I have to write like this is DIV and class here is, I have read the class name here is guard. Okay? Now after that here you can see that I helped write that. Lift is DIV, then className here is card, and the card here is header. And I just cried the header of that as well. So here I'm just copy this link. So it copy this heading. And pistol right here. Remove this heading here, okay, now here you can see this is just our designing where I'm distributing here in the Bootstrap. Now here you can see that I just created the DIV class. And the class name here is card already. So cardboard means that I'm just creating the body of that. Here. You can see that after this, I have prepared the form. So now our exact coordinates is starting so form x. And here is if you want to link this file to another PHP file, so you have to simply provide the link or if you wanted to show the result of that fight inside your link. So you have to provide the rest of that lake age calculator. Here I have great age calculator. I will discuss this in while running the program. So you can see that I have read each conclude rate here. Now here I just write method. And the method here is a post method. Now here I just write class. Class here is form, and the form here is okay. No, I just closed the score. Here. You can see that I have derived DIV. Div her is a class. And the class here is I have to write there, grow rho, which is n here, I have to write draw and before. Okay? And then clausus law right here. Now after that here you can see that I have right there, this is dV. I have to write that this class and the class which is equal to here, I've read that this is a colon and the color and hair is md. Md here is five. Ok. Now after this here you can see I have raid one, select Kumar. So select here. As you can see that select the name and the name heritage is equal to. I have read that. The name here is d. Then here I have to read form, sorry, class. Class here is form. Form here is I have read, this is a form. Control right here, has an closest chord right here. And now you can see. I had read PHP code right here. And PHP before. I have great, aij is equal to one. Then here I have right i, which is less than 31. This means that, so this is i a plus. So which means that here you can see that I have to write i plus plus. And here you can see that. And you can see this is i less than 31. So this is treatment means that the days is starting from one and debt will go up to 31. Okay, so if age is less than 31, so that will show me the all portrayed here. Okay, now here, I'm just getting the numbers right here. So the equal and the equal here is I will get option. And sorry, this is equal and option and the options here, our value and the value which is equal to halfs dragged that get the value of irate here. So this guard the value variable i and then closes core right here. And here show me the value of i and h here. And here closes core. Okay, now here you can see. So this means that I have to show the Bayes result right here, which is starting from one and less than 31 right here. Hopefully you understand now. Now here you can see I have to copy this code right here, and then I have this corner here as well. So you can see here this is a class, and the class here is the name of the month. And then here seems a case like class control, then here, v how the 12 months. So I have to write that 12's right here, okay? And here I have read is equivalent sign here and is equal to sine here. And these are the variables. So here I just write this as a variable, variable, variable and a variable, right? Okay. Here you can see, so we have the values seem as a case like or days rate here. Okay, so I just copy and paste it right here for again, do the ears. Okay. Now here, you will see that I have to copy and paste this score right here. Select OK. Now after that here you can see that I have to pestered again. And this is a core for the date. So here I just write that this is for the year and they did a class right here. Now here you can see that if PHP then Harrods right ear hair, I just get D. And then so did and in turn the date I have only select the ear right here. Okay? Now here I have to write that the PHP right here, Okay, now here for i and I just get the year which is starting from 1990, or as writing, starting from 1900. And that will get the ear or a class right here. Okay, you can see here that will only get the year variable, and this is our date function idea. Okay? Now here you can see that iss plus plus right here. Now, equal statement is seen like others. Now here, after this you can see here I have to write their DIV, DIV class, which is equal to I have right there, this is the row right here, closest. And here I have read that DIV. And the class here is equal to I have read column, the column here is MD. Md here is four and closes code right here. Now here I am just writing the input four, submitting your age and age here. So pi, which is equal to I have read that this is submit and the submit hair is a type than name here is also a submit. So I just tell you that I am disputing the PHP code right here for Submit button. So you can see here. And then after that here you can see that I have to create a class. And the class which is equal to here, I just write btn and then btn. And that will show me the look as the primary look right here off the button. Then here you can see that I just read a value and value here is I have read that. This is let suppose check the ok. And then causes cold right? Now here you can see that after this reform is computed right here, which is a front end. Now here I have Google do the PHP code right here. This form right here. Then closes code. So I'm just removing the waves pieces. Okay? So these are the, some of the wild species. And after that here you can see that I have nucleate the PHP code right here, where I just got the first variable which is D and David material, we use the post method right here. And the post method here is the day closest chord. Now here I can write this is the variable Monday and Monday. I have to set the postmaster. And here I have to read, this is the month. After that. Here you can see that I have to write ear, an ear which is equal to I have to write that a post method. And this is the post method and the post matter and here is the ear. Okay, now here you can see that I am disputing what another variable right here, which is DOB. Dob means that this is the date of birth. Firstly, I will get the day. Then here you can see that I will write, I will get the month right here. Then after that here you can see this. I have to write, which is here as well. And this is closest score right here. Now here you can see that I've only get or I will create the functionality for the day. So here it is right day or Harry straight days and which is equal to mu. And nu will get the date and time right here. And here. I have to turn this into the database part. Closest score right here. Now here you can see that I have to write. Here I will get the rate here is painted or different statement. And inside deference statement here, right? Did n time. And then close the score right here. Now, every show that today's did as well. So here what I did, and then firstly that we'll get the same text late day, month, and year as y is a capital light here. And then close the score right here. Now here you can see I just print some of these statements right here. So firstly, I have to bring a beer statement. Closest score. Then here, equal and equal here is I have this statement right here. So this is the statement that you are after this, sorry, here firstly, I read that. Your cleared off and offer this here you can see that I have to close the score. Closest score right here. Then after this, you can see that I just read equal and equal here. Plus I will get the variable which is okay. Now here after this is closest chord and print statement, here I have read that equal, equal and the equal here is a b tag right here, which is a board text. And here is right here. You can see that I have to close this B Corps, b tag right here. Okay? Now here you can see that I have right, equal. And the equal here is I just set the variable age as well. Okay? And if ij and that will print the y here, okay, which is the IRR, then here I have read equal. Then here you can see that the ears right here. Ooh, closest score right here. Okay? Now here you can see that I just print one others. Take hereditary just equal. And that will print the age as well, which is getting the month right here. Then here, equal here, we'll print the months right here. And after this here you can see that rises closest chord now equal and guard the age and age, which is d. Okay, now here you can see they're equal. And then here I will get the day's rate here. Ok, here you can see, and I'll just close this code right here. Now I am explaining this core for you guys fastly. You can see here, I have to create the bootstrap link right here. We're the CSS plans are located. So this is all landing if your internet connection is working so that. This link will be work, otherwise, this link will work at that stage. Now her after this, I just take a container class. This is a bootstrap class right here. After this you can see here this is a car class and this is a card header. Here. This is each of the PSP, which is a heading of this header card. And after this, you can see here, I just start, the cardboard is eight here. After this here you can see that I am disputing the form, same like our example. Here. The formula, get the age calculator file right here. And you can see this is the method post. Then I just fill the form naked date, month, and year. And when it is, click on the submit button right here. So this each collaborator File Open and then mattered or postal worker that state. So we already in the age calculator. So that's why our open towards us an assignment or if we wanted to create or if you want to show you the next Berlioz's Symphonie. You have Google-wide. There. You have to provide any file link and then you have write your PHP or you have to read you this PHP files right here and this define. Now here you can come back. And here you can see that firstly, I have derived this select method for the day. So you can see here our D, here's our 31. Then this is the one day starting from 31 and less than or equal to 31. And this is the increment operator. This equals 1000 will get options. After this, you can see here I just select statement, which is for the months things occurs like this, starting from 0 and less than or equal to club. And that helpin our months right here. Now, this is select crater. And after this here you can see that I just got this court for the ears when I just on the ears and select our ears. So this score will run at that stage. So I just get the date function right here. My variable here is year. And this one get the ears right here, which is starting from 1900 century. And then that will get the two year as 2020 ratio. Now offer that. You can see this is a Submit button, okay? The submit button will work when I just click on the submit button. So that will show me simply this date. Okay? Now here you can see that first day I had proposed the submit button, then day, month and year. Then here you can see that I just created a data of what that will get the day, month and year, and show me the output. Now here that we'll get the day times temperature here, this is our DEF formatted and then this is the day time stamped with the help of new method right here. Now here I will get the two day date as well. Then I just run this court so that will simply get the two-day date. Okay. Then here you can see that this is our this is for the opener. Do your date of birth is and then you are, age is okay. Fussy. That will show me the data. And then that originally the agents, but they're mature years, months and be as well. Okay, now here, I just wanted the score right now. So you can see here, my chord here is working. You can see, and this is just a normal age calculator right here. And I just select the date of birth rate here. Let suppose for bientot February, and this is let suppose 1990. Okay, you can see here, which is 1990, and I just checked the age. So you can see here your date of birth here is for Dean of February 1990 and you are 30 years and one month and 15 days. You have age. Okay. You can see here, hopefully you understand all that hall. You're going to create each collaborator with the help of PHP. If you find any of the problem regarding to this lecture, please let me know. And thanks for watching this lecture.
89. Convert number into words in PHP: Hey guys, welcome to this lecture. In this lecture we are going to see the next project on convert the numbers into words in PHP. Let us see how we can create it. Here. You can see I have to create a PHP tag and then close this PHP tag right here. Now here, I would like function. And the function here is number, do words. So this is the function name right here. And skidding, This is the number two, the word function. Now, inside this functions here, I just create an edit right here. So this is at a which is equal to I have write. Eddie and the eddy here are No, I just kinda works my numbers into words. Legacy IS created number one, which is equal to her eyes, right? And this is one. Ok, here. I helped write comma. Then after that, I just cleared the list of these numbers right here. And I just change the values only like 23. Here I have write 456. Then here I have write this family right here. Then eight, then 910111213 right here. Okay? Yet so far I just create a 13s number list right here, okay? Now here you can see that I just create the more numbered list right here as well. We are starting from the 131415161718. Okay, now it's fine. And add the last I have to write this is 19 ratio, okay, now here I am just writing the name of that, which is 19, then this is eight. This is 17. And this is 16. Sorry, this is 16. This is where I'm just writing there is 15 and this is 14. Now here. 1313 right here. Now often there is 12. Okay? Now off from there and here you can see that I have to write this as 11. Then this is here, ten. Now here I have to write that this is 98766. Here I have to write this as five. This is just a writing FRA Cherokee and 2N1, okay, now here you can see I just create our 19 numbers right here, okay? Now here is a numbers is converting group 234 and up gu nine. So simple, you can see here I'm just shooting one another eddy, which is only taking the tens number. Ok, we are, you can see that lake here. I just write that this is the variable t for the ten, number and heritage create an eddy. And the LA here are faster. You can see that I have to create four plenty, which is getting the x2, which is equal to here. I have to write that this is getting the trendy right here. Okay? Now after that you can see here, I have to write that. So often this tool, I just copy this gu nine right here. Okay, now here you can see that simply for this is for 20, then here we have the value here for 3440. Then after that here you can see them, this is for 60. Then here, sorry, sorry, this is 450. Then here we have 460. Then this is for 70. Then this is for 8090. Okay? You can see here this is an edit for that tends number only. Now if you want to clear it or if you want to convert your numbers to the 100. So simply you have right as the variable eliminate here. So I'm just creating a simple numbers list right here. So this is an added I2 here. And after this here you can see that I have is 400. Now this list is for, here you can see that this is 4 thousand. And here you can see that this is thousand. Then after that here you can see that this is 4 million. Then here this is 4 million, okay, you can see that. So I just create some of the lists right here, which is, you can see here this is my variable, which is hundreds. And now you can see here that isn't a writer or you can see that this is for hundreds right here, okay? And I just copy these all inside. You can see here, I just copy and paste all of these inside this. So remove this curly brackets right here. And you can see that I am just simply positioning it. Okay, now here you can see now my numbers list archeology right here. And after this, you can see here my actual BHB sections a star. Just because of here, we can simply provide the number list and this is the effort for you have to clear the number list right here. So just forget about it here. Now, just turn to that logic right here. Okay? This is just a limit of the numbers we're demonstrating right here. Okay? Now here you can see that I just call variable numbers. So number variable here is, you can see that this is my a pedometer that functions. Now here number which is equal to, I have to write that this is equal to the number. And here you can see that I just create or just get the number format here. So number format will be the number right here. And here I will get. The format of blue right here and then here you can see their dad. And so dark San and then here I write comma. Okay, now here you can see there. So simply, this is the format of the numbers right here. Then here I would write number and the score, Eddie, and which is equal to here, he's right, this is explore. And that's an explore. Here I have grind the door signature and that way you get the number right here, okay. And I just close a score right here. Okay? Now here you can see I have to create one of able for whole numbers and which is equal to here you can see that I illustrate number and number underscore here. You can see that we haven't added right here, which is starting from 0. Okay? Now here you can see that I hug right, that this number is I charities. Decimal numbers are inherited, right? Number underscore eddy, and that will get the value here, which is starting from the one right here. Okay? And you can see here, I'm disputing the four types of edit right here, which is the number, number, any whole number and decimal number. Now here you can see after this, I just write that this is k, r and sort algorithm right here. So I'm distorting the value right here, which is for whole number right here, ok. Here you can see I have the right for sorting will use before that I have arrived. This is whole underscore eddy, okay? V is equal to Harris, Right? This is Adi. And at worst, the value right here. Okay? Which we'll explore. And which we'll explore the values here. Where I have to write that. This is simply like getting the whole number right here. Okay? And I'll just close this chord right here. Now here in the KR sorting, I just take the whole value right here. And after this, I just closed the score. Now here you can see that I just read R and T and text right here. I have to create the empty string, which means that this is just an empty string. And this will show me the text right here. Okay? Now here you can see that I have right for each loop. So this is for each loop where I'm creating right here and here I retake the whole added right here, and then whole array as the variable key which is equal to here. You can see that I helped write that this is the variable i. Now here, if variable i, which is less than d, Okay? And then here you can see that I have good, right? This is the text, which is my variable here. And the detector here is can continue painting. The value of which is, you can see here, the value of this error right here, okay? And the value of adding ICT here, okay? So this is hopefully you understand now. Now here after this and the area here, I'm printing the value of i right here. No offer this. You can see here I'm just going to the else if conditions right here and here is, I heard rag, This is the variable i and i, which is less than a 100. Okay? Now here you can see that I have to write that alrighty texts. And which is daughter and her eyes right there. This will get the value of t. This is variable P right here, and that will be the sub string. Okay? Now here, there it will print the value of i, then 0, and this is the value of one right here. And then closest score right here. Now here this is RET text and the text which is dot n is equal to here I have read, and this is the dollar sign. And that will get the value of Eddie. And here you can see that I had to write that this is also a substring right here. And the sub string here is the variable i, then this is 11 right here. Okay? So I will explain this court naturals when I just compute this here, I just go to the else condition. So else condition here is I have to write this as RAG text and the text dark, which is equal to here I just tried firstly that I will get the value of Adi. And here after this I am disputing the sub edit IT. Sorry, this is substring right here. Okay. You can see that now hereafter that here you can see their eyes variable i, then here 0, and this is one right here. No, I just close this core. You can see, and then here I have grade the empty string, and then here I just concatenate my 100 variable habitus is starting from 0. So here you can see that offer this, I have to write that this is audio to text. Reg text, which is equal to I have write dot, dot, which is equal to here. I will get the empty string right here. And then after this, you can see that Einstein, I tried to edit a territory is variable array and get the substring as well. So you can see I just copy and paste it right here. And then offer this. I just copy and pasted this line as well. Okay? Now here you can see that this is the variable t. Just because of here, I just get the values of tens. And this is okay. Now here you can see. So my this if statement and for each loop is completed right here. And now I just turn to the, another is taken like here you can see there I disappeared. The if statement and if key, and the key which is greater than 0. Okay? So I will discuss some of the key when I just complete this quote. So you can see that I just tried RTT text. Okay? And Adichie tags door is equal to here. You can see that I helped write that this is dot and that will get variable hundreds. And hundreds. Here is the key. Helps you understand now. Now here after this, I just typed dark and dark, which is empty string and then closest chord here. Ok. Here you can see, I hope to copy this all quarter eight here. And then after this here, you can see I just paste this code right here. And now you can see here I'm executing 100 variable here, which is the name of, you can see here this is decimal number. Okay? So decimal numbers, which is starting from 0. And then here you can see there that will simply get this string right here and here I described and value. Now here, ifelse, which is d, this is the decimal number right here. And the same is a case like or all example firstly that we'll get the number of. Then here that will guard the numbers of. So firstly that we'll get to the numbers of eddy, okay? Then here you can see that that is simply writing the eta right here, which is the decimal numbers. Okay? Now here you can see this is a decimal number here. And after this, I just go to the as if conditions again. So this is inside the if statement. So here you can see they're interested merge here. I just copy and yes, ok, paste or right here. Then here after this, I have to write one of the if statement right here. And if a statement here is, you can see that this is a decimal which is less than 20, and that will get the result of adding. And now here I will write as if else if statement also here you can see that I just copied and pasted right here, which is less than here. You can see that I have to write a 100 no variable text which is dark, getting the value of t, which is the numbers of ten. Then here substring here is firstly, I have to write them. This is a decimal numbers, and that will go to 01 right here. Okay? And then here you can see there I just close this code right here. Okay? Now here you can see there I just took the it one or the empty string and this is getting the values of array is sub string. And that will Here you can see that there is a decimal number. Okay? Now, after this here you can see, I hope right there this is return and the turn here is our text. Okay? Now here you can see that I just cleared extract. Extract here is a function. So extract here is. The postmen. Okay, and then close the score. Now here you can see that if, so, if here is as suits, and the answer here is I have to write one variable which is can ward. And after this here you can see that I have to write eco statements to cohere is paragraph tag. And here I could write inside this paragraph tag. So this is equal. And inside this paragraph tag I have around there and this is a line. A line here is the text and which is in center. And then here after this alignment of text I operate this tile is equal to, I. Just write this as tile. And this time here, which is equal to here. You can see that there's tiny hair color and the color here is, I hope read the color here is green. This is the color and the color here is green right here. Now here you can see that I just closest chord. And then here I have read this is the number, number two. So which is my function name. So I'm just calling the function here, which is the number two word function. Ok. Now, you can see that. So here I'm screwing this and you can see that. And here you can see I have to write numbers to words. And here v, how printed the variable number. Offer this area considered I just adored. And this is a slash b, which is a percentage sign right here. Okay? And then I just close this call right here. So you can see my PSB section is computed right here. So firstly, I'm just explaining to you guys, which is my PHP section. Here. You can see that this is just a function name and this is the variable number eight here. This is a list for when you are just writing one B23 and up to 20 numbers, which is the name of Eddie. This is a numbers of 102040 words. And this is the list of a 100 AD is ok. And here you can see there. Now here you consider isolated numbers, getting the format of the number, then Harris's right eddy, and that edit will be explored right here. Now I just take the variables for the whole numbers, which is getting that number edit h, which is starting from 0. And the same is the case like decimal number like 0 to nine. So this variable for the decimal number visual guard the number area and that is start from one. Now, here you can see that this will get the whole Adi, which is, which is also divorcing the Adi and that'll explored the whole numbers. Now I just used cash sort algorithm and which is using the whole array. And here you can see that this is the empty variables to showing me the text right here. Now foreach loop, guard the whole array as the key, and that will very irate here. Okay? Now after that, you can see that this is the if statement from 0 to 19 numbers. Then here that will print the eddy. Then here you can see that this is from numbers that will get the hundreds of numbers. After that, if this statement is not true to that, we'll run this statement. We just printed a 100 numbers like billion, million. So this is the kind of that here. If k is greater than 0, so that will simply print a 100 slide values. Okay? Now after that, here you can see I just print if statement. So if decimal numbers is less than 0, so simply print and statement and that will get the format of that 2000 numbers. Now, I just return RDT text variable right here, which is a post method of exact extract and if acid, which is kind of worked, so simply write this statement which will get the numbers and printed like here. Now here you can see I have to create like here you can see there are two key year delay CAF form. So this is a form right here. And offer this computing is form here you can see. So the form method here is the post method. Okay? Now after this here you can see that I have to write one of the table right here. And the table is the border of one. And then here you can see their eyes right? Text Lima toward the SEC, text laboratories in center. So you can also put it as well. So here I just write a table row. And inside the table row I have write this as a table of data right here. And table data here is inter, your number. Okay? Now here you can see that I described him up to the top. And after this table that I just poured one of the input. Input here is a type of, so in port here, which is a type of text right here. And this is a type of text. And the text here is I have chloride, this is getting the name and the name is equal to here is write a number. So it is my variable here. Now here I just provide the value. So the value here is I have to write a PHP core. So PHP if statements, so if S it is getting the number right here. So simply you have to write equal and that will print the number what you inserted right here, okay, which is in words. Now here you can see that I just close this PHP tag right here. Okay. Here you can see, and here you can see there an ad last, I'm just creating one more turn for the Submit here via td tag, which is a column span. And the codons panels is equal to, let's suppose four. And here you can see that I just write texts Lyman than text-align center. And here I disclosed score. Now here you can see that I just take a user input right here is the type of submit. So this is a type of submit button right here. And here you can see that offer, the submit button, I have to write that this is the value. And the value here is, you can see that I just write that word, number. Ok? So this is convert numbers, Buddhist string. Okay? Here you can see. Then here you can see that after this, I am just creating the name here. And the name here is the code word. Okay? You can see that. And I just closed the score right here. So as you can see, my This project is completed right here, which is for a mini-project, which is numbers to the string or the word convertor right here. Hopefully you understand now that how you can create this project in the PHP right here. So that will simply guard this cardboard variable right here. They end both this name right here. Okay? Now here you can see I'm just running score right now. And which is a kind of a port number. And you can see here. So as you can see, my Discord is running successfully right here. And I think so you can understand this PHP code right here where I am this already cleared. Now just turn to the, this core and we'll show you the computing knowledge about that. And you can see that a frosty edges here table right here, and simply provide a value to it, which is enter your name, then this a table and this, as you can see here, the numbers area right here. Now here I just simply said the if statement right here, which is a PHP statement. And I just get this acid, which is the number right here when you're just adding the numbers. So that will take the number. Check all of these conditions is what we already defined right here and show us the result industries. Let's just see. So here I just run this code and you can see that. So firstly, I have read this is 21 right here. So you can see that this is a 21, then 45. So you can see here this is 4551. Here you can see that 123. So you can see here this is the 123. You're gonna see here Hall we get the numbers to this string in PHP. So this was a mini-project what we already created. So if you find any of the problem regarding to this lecture, any party Barnard understand this lecture, please let me know and thanks for watching this lecture.
90. Read PDF file in PHP: Hey guys, welcome to this lecture. This is a very short lecture on creating or reading the PDF files into the browser. I will show you that how you can read your PDF file into the browser. Very simplest steps. Here you can see that this is PHP on isis closest PHP tag right here. Now after that here you can see that I just created, let's suppose a PDF file. This is my variable here, which is equal to simply provide the link to your file, what veer your file is saved. I already save this file and the name of domino PHP. So you can see here, I just picked this file, right? Heritages dummy dot pdf file. Okay? Then after that here you can see that I have read, this is pdf and the PDF file, which is my variable name right here. And then here you have to write there, or here a PDF file name, which is my new variable here. And here I hook right there, does a dummy dot pdf right here. And I'll just close this tag right here. I just simply provide the link to my files right here. And now I'm just accessing these here. You can see that I have to write that this is the header. And the header here is, let suppose this is a content and this is a carbon type right here. We're, you will write application slash pdf. If you write.doc files, you have read application Slashdot. If you write TXT file, so you have to read applications slash TXT. This is up to you. So you can read only the PDF file right here. So I'm just writing the header and then Content-Type with application slash pdf right here. Now here I have to write that this is the content and this is air. I have gray, the corner here in the string, so this is the content. And the content here is, I have arrived at, this is this position. And you can see here, this is this position here. And c is a capital right here. And then here I heard right there that will get the inline tags, Miss means, and that will open this text into the browser. And now here I just write this as a file in right here, which is equal to here. You can see that I have read that. Then this string right here, okay? And then here you can see that I have Gou, Hen catenate dot. And then here you can see that I just write that this is the file name right here, which is here, just write dot. And then here you can see that I have to read this signature right here. Okay, now I disclose as core. And this variable here is the PDF file name, okay, sorry for that only I just write a file name right here. Now here you can see there this is computing right here, which is the header, this position right here. Okay, is, this is the header with the corner right here, and the carbon here is dispositions, and that will just write in-line. Then here I just get the file name right here. And the filename right here is, you can say that this is in this string and then I disclose that right here. Now after that I'm providing some of the encoding right area. It is bright header and the header will get the content right here. And the content is transfer. And the transfer discard content into the encoding. Okay, and I'm quoting here is I just convert this into the binary for the security reasons. Okay, now here you can see that I haven't write header and the header will accept the range. And the range here is, so this is the header and header and accept the range. And the range here. R is the capital and the range here is, I helped write that, that will get the range in bytes. Okay? And ice closest score right here. Now here you can see that I have to create the read file function err images. So you can see here file and here I have to write that this will get the pdf file, which is a variable right here, okay? And then I disclose this code right here. Hopefully you understand now that how you can get your PDF into the browser right here. So let us see. So this is read file function. Ok. Now here, after this, I'm just running my cord. And you can see here where I just run this browser. And then you can see, so that will successfully open my PDF file with the help of this call. Hopefully you understand now the PDF file cord working in the PHP. So you can see here firstly, we have to create two files name. We're I just take the two variables, which is a file m. Then we dot pdf, then PDF file name, which is dummy dot pdf. Then here you can see there I just provide the header fasted that we'll get the application extension right here, which is PDF doc file or anything. Then here you can see that we'll get the content dispositions, which is an inland means that we're searching in the browser and that will get the file of damage dot pdf right here. That header content, which is the transfer of encoding binary, which means then that will convert this into the binary. And then that will get the size of that citizen by the last read file function and I will read the filing right here. If you find any other problem regarding to this lecture, please let me know and thanks for watching this lecture.
91. Get User IP address ,Browser info and OS address in PHP: Hey guys, welcome to this lecture. In this lecture, you will learn about that, how you can get your client IP address. Then you have your client, the browser information. And you're a clown, window information with the help of PHP. When any one of your client will search your website, let's suppose that we'll search your web browser, that will search your website like it will reach your index page. So his IP or rest, then his browser information. Let suppose he is using Chrome or anything, or he is using if he's using the Windows eight, Windows ten, or Windows salmon. So that will show me the NFO fewer client like this. Let us see how we compute it. Here. You can see there undisputedly true files, which is the IPR doesn't backend of IP address to file them excluding right here, which is for back-end, and this is for front end right here. Legacy, I just create one of the PHP tag right here. And inside this PHP, I just use a require statement, requires different as you can know that when you are just linking some of your files, let's suppose this backend PHP files or add debt case. You have to link your file like this. So I have read that require this is backend underscore IP, and this is a capital IP and this is address dot PHP. Okay? Now here you can see I just close a score right here. So I just link this file, which is a backend file to my front end file right here. Now here you can see that I have the right doctype. And the doctype here, you can see that I have read that this is HTML, which is a representation of the HTML right here and here I have read that this is HTML tag. I just close this HTML tag right here. Then you have, if you ever write heterosexual simply finite header section right here. And this is the title of the page right here. So title here is I described that this is IP address N, system info. Ok. Here you can see that. So this is how we can get our title of the page right here, as you know already. Now here you can see that I have to create a body section right here. And this is the body section. You can see that is the body section. And inside this body section, I'm just creating one of the tag which is a center peg. And inside the center died I have to define heading number one right here, which is IP address and system info. Okay, this system right here. Hopefully you understand now. So you can see here, my pages looked like this. And I just searched into the browser. So you can see that that will be look like this one. Okay? Now here you can see that I just go back to the parent dendrite here. And here I have to create one of the table right here. So inside the table, so this is my table heading. So table definitions. Now here you can see that this is my a table data right here. So table row, because we firstly creating the rows of that. So inside table row isis defined three tables heading right here. You can see that I define table heading. Firstly, I will get the IP address. Okay? Then here I have to write that. This will be the table heading north, th tag, tga tag, and this is table heading tag right here. You can see that I have to write IP address. Then here I just write window, window informations. Ok? Or you may say that this is operating system information. Then add the last, we will get the browser info as well. What type of blob rosaries client but titled brother is client is using right here, okay, now here you can see that simply their table, later technologists run this code right here. So you will find like this, ok. Now here, after this, you can see that I'm just simply give it some of the designs to it. So here inside this header section, I have to design it like this is my style right here. And this tile here is the CSS tag. And here you can see that firstly, I will get the table. And the table here is, you may say that I will get the marginal fit. So margin here is top. So this is a top margin right here, which is 15 pixel, sorry for that 15 pixel right here. Then close your CSS tag right here, and here, right formed. And then this is a farm family right here in the font family here is the area. And then the foreign family name here is sans serif. Ok, here you can see that that is sent sheriff right here. And this is censure. And then close the score right here. Now for that, I have right border. And the border here is collapse. And the collapse here is, you can see that I just tried the collapse right here and the border which is collapsed. Ok, and then close the score right here. Now here you can see that I have to write that this is the red and the bad of that here is a 100. You can see that I just simply provide the right of the table right here. And it will look like this. So here you can see that after this, I just go to add some of the table, the time table heading tag combiner. Okay, now here you can see that I just getting the border and the border here is 12 pixel, which is solid. And here the solid here is, I have to write it as a solid black. Okay? And then of course, the score right here. Now here I have the right text. And the text here is that we'll align it to centre and then closest tag right here. Now after that I'm just defining the padding of the periods with bedding of the page areas eight pixel. Ok, now just check the output. So you can see here. So this table is look like this right now, helps you understand now. So this is just a CSS section. Visit ready basic. Ok, now here I have write TR tags to tear tag. Here is I just write n th. And this is a child right here in this earlier is that even value, okay? Now here I can simply define the background of your table only. So that's why isis defined the child even okay, now here you can see that I have the red color, which is the light. And the light here is light can. Okay? And I just closed the score. Now here, when I just run this code right here, so you will find that. So here you can see that. So yes, okay, it's just good for it. Here. This is the background color, which is a child and th, and this is a tier tag right here. And after that here you can see that I have the right heading number two. And then here you can see that that is the form. And the form family here is same as a case like this is a share sen and sen Here is the Sheriff. And then here I have read that this is you may say that this is like ok or sensor. And here is, I just remove this. And here I have read one other text right here, which is heavy radical, ok? And this is highly vertical. Okay? Now here you can see that my front end, designing his computer right here. You can see that now here we will move to the backend of IP address and you will see that how we can create it. Here, I just cleared up class of IP address, okay? Now inside this class, I had to write that this is a private static and the function right here. So I just take the private function, which is you may say that, that we'll get the user IP address. Okay? Then after that you can see that this is the function. So here you can see that I will write return and return here is underscore server so that we'll get the request from the server, which is HTTP. And sorry, this is getting the HTTP underscore, user underscore agent, okay? That will get the address of the user underscore agent right. Now here after this you can see that I just cleared public static function. We're, I just get the IP address. Okay? Now here you can see I have to write the variable which will get the mean IP address. And here I just take this variable as the empty string. As you know that when I just take this empty string for, I will add the value of the main. I will, I will add the IP address in this mean value and then someone will search your browser. Okay, now here you can see that I have right? If net will get eNB, which is a GET environment right here. And here the environment here is at UDP underscore, underscore IP address. Okay, so that will get the client IP address right here. And now you can see that I have right, mean IP address, which is equal to get environment like here. And insert this GET environment. I have read that HTTP underscore. So this is, sorry, client underscore seems a case like this HTTP address, okay? We will get the client IP address. I just close this code right here. Now here I will write else-if condition to else-if condition will also get the environment right here. Okay? So it's better to copy this and paste it right here. Like if now here, i will simply change the address of that client HTTP underscore. Underscore here you can see that that is forward, okay? And then forward underscore have read that this is the far right here. Now I just copy and paste it right here. And then here you can see that. So firstly that we'll run this statement and that will run the main IP address variable rate. So as if again and hear this as a four, you can see that same is the case like STDP forward and I have to remove this four from that. Okay, are you can see, so SCTP X and then here we have like this, okay? And here you can see that I have to remove this right now. Okay, it's fine now. Now here i pieces, pays the score again. And then here you can see that after this I have to write that this is for or here you can see that I just copy this asthma 1234 statements are same like heritages. They care this. Number two statement. Number three is statement and number. You can see there are number three and number five statements are seen right here. Now after that, I have to copy and paste or seem code right here. But here I'm just changing the request lake SCTP underscore network request for the address right here. And that will get the remote underscore address. Okay, costly, that will get the address of HTTP, then that will get that a more address right here. Okay? So here you can see that I have to remove X from here, the x from here as well because we are just simply getting the SCTP forward requests right here, actually be forward because tried here as well. Then here you can see that this is HTTP underscore forward for and this is GDP underscore forward for animal. Okay, then here you can see that these are now getting the SDP FX forward and STDP X forward as well. Ok, I will tell you about that in when I just finished this lecture. Finishing this lecture right here, okay? Now, here you can see that. We have 12345 if statement right here. And after this if statement here you consider I just get if, if here is remote, which is like as UDP underscore forward right here. And after this you can see that I just write as if statement which will get the EMA environment of HTTP and HTTP here l, I will write that this is SCTP forward right here, and this is the SGB forward. And here, after this, you can see that I have to write that. This is okay, it's fine now because we are computed HTTP forward. And this is remote address right here. And this is also remote areas. Okay. It's fine now. So we already completed her. No. Now here I will go to the else statement. So L statement here is I will get the main IP address. Okay? Now here you can see that I will get the mean IP address right here. This is little bit confusing. So don't confuse right here. I will make your concept more clear when I just finished this score right here, I will tell you everything about that. Ok? Here you can see that after this, I will return diaper right here. So this is return, and return here is the main IP address right here, okay, which is my variable here. Okay? Now here you can see that my this IP address functionality is completely right here. Now here I am. I am explaining this constant are due to you guys that why this functionality is using right here. Firstly, you can see here we have HTTP and this is the client IP right here. That will simply set the values of your IP address right here if you are IP addresses empty, so simply that will check your IP address only, okay? And that is a, that is getting the real client IP address inside the PHP, right? Okay. Because of that, we will get only the client IP address. Now here you can see that there's an SGX forwarding for right here. So this is often used to detect the client IP address, but without any additional check up. So you understand now, now we just turn to SCTP FX forward rate here. So this X forward, which is a header of these factorizations tendrils, which is a herding or identifying the originating off your IP, which is mean that originated your 5B, like via your IP is located and what server which works or where you are Ip will be connected. So you understand. So this lecture is very, very important because when you are just working, you do your websites and when you are working with you are a highly and website where you need your IP address. So these concepts are very much important at that stage because menu or just working with CMS when you are just working with CRM. So at that case, you are client information is much, is much, much important for you that we are newer client is important from what, from what operating system or what browser they are using. Okay. So you understand now, now here you can see that this is the Azure db x, sorry, this is HTTP forward for request right here. So this is also detecting the IE client IP address, but without any additional check, this can lead does security issues only. Okay. And then after that you can see there I heard right, that this is a mod underscore d, d, r. So this will simply be merged and that will reverse divisibility words or DNS lookup. And it is based on the remote addresses right here. Okay, so this is a double D arms addresses of the users. So note that your web browser web server must be configured to create the variables, okay? Here you can see that or IP is unknown and user will all dead debts, all thing will answer me also or that I think we'll get the IP address itself right here, okay, now here you can see that I'm just going to the front end right here, and inside this front hand. I'm just creating like here one another function or do show you guys that how we can create or how we can show this IP address into the Liberals are here. You can see that I have read that this is a TR tag. And inside this tiered heck, firstly, I have to write that this is the td tag. And after this td tag, I have to write the indices underscore and which is equal to here, I will get my class name. So my class name here is the IP address. So it is equal to IP address. Then here I will get underscore IP function right here. Okay? And then here I will close this score right here. Hopefully you understand now, now I'm just taking this into the browser. Now I just run this into the browser which is a PHP. I pedestrians the front-end file right here and here you can see that, that we'll get the IP address right here. Y this will get the IP address, which is the ratio sign and one just because of m naught, the client right here, you can see that I am the server to that. Okay, then I just live. We are at my DNS and all things are configured that we're I just wanted to access the servers for a dashed hedge. Eric disappeared as when we work. Now here you can see that I just go back to the file right here. And here I have read that defeated the public. And the public is static. And the static here is the function right here, which will get the operating system right here. Now here that we'll get the user first, okay? That where the user is logged in or what type of user is getting using the operating system. Hair I have right self. And then here I will get and get underscore user, underscore agent. Okay? And then I'll close a score right here. Now here, eyesight operating system underscore. Here. I'm just getting the platforms to it. Ok, which will get here. You can see that the platform is also unknown operating system platform, ok, did because of I don't know what the platform is using, the operating system right here. Okay, here. After this, I have to write that operating system. Underscore ham distributing the added right here. Why I am creating this editor right here. This is just because of here you can see now, like her is operating. System and operating system underscore Eddie and which is equal to here. You can see that that is added right here. Okay? Now question why I am using this arrow right here. This is just because of this arrow will get your operating systems how you can see that you have right slash. I helped write that. This is the Windows, Windows and then you have right, NT and T, and then you have bread 10 slash i, which means that window, that will get the window pen slash I and V equal to here. You can see that I helped write that this is windows ten. Okay? That will, that will be the address of the window ten right here, where you can write that. If you write Windows eight right here. So simply you just write this command for Windows and which is equal to here you have read and this is for Windows eight. You separately define all of the windows right here, that what types of platform you have. If the user is login to any of your platform like Windows, ten, salmon, Linux operating system. Or you can say that Apple operating system. So any operating system the user is going to be live. So you will, this adder will get the value of that window and then that will show you right here if none of these is available right here in this area. So that will simply generate the unknown operating system platform right here. So I am removing this because at that stage I do not need this windowed aid or meter ten because I'm just simple using the notepad right here. So I will show you the output of an repents right here. If you are working with the live website, so you have write, add Windows 8.1 as well. Window eight Current is 0 as well, window salmon as well, and different versions of all of them and those bridges, Microsoft platform, Linux platform, macintosh platform, Safari. So you have to write all of your sorry, informations of you're adding the information of your windows right here, okay? Now here you can see that I have right for each loop, and for each loop here is I have read that, then we'll get the normal sign and that will get the operating system underscore added right here. So as I have to write that this is our x. We've already told you about this registration expressions right here, which is equal to here. You can see that which is equal to I have write that this is equal to dollar sign and value right here, which is a variable value. Okay, now here you can see, offer this here you can see that I just write if statement and here I strike be registration underscore match. So this is the built-in function which will match the station right here, which is x. So here I started with a rage x right here and rejects and then that will get the user. And yes, that will get the user admin. Okay, here you can see. Now after that here you can see that if this we'll get the user information hazards with now here that we'll get the user platform information as well. You can see here this user operating system platform is my variable, which is equal to here I just said, the values. If that will meet the values right here, so simply that will show me the output result right here. And if this is not mutual, didn't really dark regenerate the unknown operating system adipocyte here. And now you can see that I'm just returning right here, which is operating system underscore here you can see that there is a platform. Ok. So now my eyebrows are functional ideas, also computer right here. As you can see that this is just a chord right here. Now here, I'm just going back to the front end file here. And you can see that now harried firstly, we will guard di appeared as glass. And then here you can see that I had to get the operating system function right here. We are. We are already gathered right here. You can see that this is yes. Okay. And this is operating functions, operating system function. Okay. Now here you can see now I just took closes, get underscore operating system and get underscore operating system. Ok. Yes, we'll get fine. I'll get underscore OS. Now I'm going to run the score right now and show you the output of that. And you can see that this is in the browser and no lie number summer teenage. Yes. Okay, it's fine. Now, you can see that here we have to add, this is scared to user IP address and barley for by mistake right here where I'm just writing GAD you denature, okay, now it's fine. I just changed this value right here. This is just a spinning mistake right here. And now I'm just running this course. So you can see here I'm using Windows ten right here, so that will get my Windows ten right here into the browser. Here you can see, and here you can see I have to write that this center and now its center. Okay, now here you can see that our table in the center, I just remove this and this. And now it's fine. Now here entire table would be in the centre. Okay. Now is just run the score here you can see fuzzy that will guard di paradise then the Windows operating system information. So I will give you the complete knowledge about that as well. So here you can see that that will simply get them Windows ten as a new cause. I am just using them under Penn right now. Okay? Now after that, here you can see that I have to add public, public static. And the static here is the function name. And the function name here is get underscore browser, which will get the browser information at their work type of Rotterdam is using right here. Now here you can see that this is a user which is equal to eyesight's health and selfish get, get, underscore user IP right here. Okay? Now after that here you can see that I have the right variable. Variable Rosa. Ok, this is a valuable browser right here. Sorry, this is variable browser and the medieval browser here is ice, right? This is a non Browser. Okay? Now, I just close as core. Now Harris write browser underscore. Same is the case like our operating system. I'm just creating the browser as well. How you can see that it is equal to the editor right here, okay? And inside this array, you can see that I am, I'm just creating the values. So what type of failures that is it? So here you can see that firstly, I have to write that this is the browser Chrome. Okay? This is the browser Chrome right here, and the Chrome here is slash I. Okay? You can see that. And that will also a slash Chrome I and which is equal to hairstyle, Madonna, result and value of Chrome. Okay? Now if you are using the Mozilla Firefox or if you're using the Safari is you are using the A-beta origins of that or any of the browsers who simply you have write this slash, then was ELA slash. And then here you have to write the name of your browser right here. Okay, now offer that here you can see that I have to write this is the, sorry, this is the for each loop CME as a case like our this error right here. So I just copy this because this is using CME as his leg there. Here you can see that I'm just using browser. Okay, which is my variable right here. Browser as the red X. Browser as the Adi, sorry, browser as red x, which is equal to the value of sigma, the case like or an old example, and then pre-registration match that edge x. And this is the user as well and this little garden operating system platform, instead of that, I'm just using the variable brows, right? Heritage is equal to the values. And now return is a return right here. And the return here is the browser and the closest score right here. You can see here with this lecture. So you can see here then I just using the browser or get Rosen information. So first V I will get the IP address function right here. And after this you can see that I am just writing unknown browser h here. So this is anything you can write, anything they get user agent will get user IP or decimal, getUser. Anything or simple, you have great get user. So this is not men dirty name is an art mentality, but when you're just calling this o Name is very much a mandatory item. If a browser is not met. The guy, I'm just opening this core onto the apocryphal. So that ritual me that unknown browser right here. And then here you can see them for-each loops him as a case like our operating system. Now here and just go to the front end file right here and here, copy this and paste it right here. And now here you can see, now here you can see there I strike that this IP address and that will simply get underscore browser or here I have to write that this is, you can see that this is the value of get 100 score. And you can see this is get underscore browser or gifts line. Now. Now here, when I just run this code right now, so we have an error in unexpected is equal to sine in the Lanham root here, which is a backend underscore I purists. So line number 48 right here. And here you can see that this is just where your browser. Okay, it's fine. Now. Now here I am, just run it again. So we have an adder in line number 54 as well. So here, line number 54. So we are the land number 54. Okay. It's fine. And yes. Ok. I have to close the score as well. And here I have to add or I have to add this record sand as well. Now I just run this chord. So line number 45, which is unexpected file and IP address on the backend. It's fine now and let's just check what is metal right here. And it's okay, it's fine. And here we have an error right here as so. Just see, okay, maybe your smell fire. Here. You can see that. Now here it will show me the error in the 42 number line. I think so I just did. This takes about that he is ok. And which is equal to o and that is the Qur'an and the Chrome, yes. Okay, it is equal to sine right here. Now it's turned again. So line number 46 error right here, sorry, four dash, lot of errors. Here. I just did a lot of errors right here. And the browser Here is the browser underscore. Okay? Now let's check for the end of the ladder as well. So No, it's fine. Now, here you can see that there will get the browser and for asthma than Windows enthusiasm and a PHP. And so this is sorry, PHP naught is this IP information. The IP has shown me like this just because of I am the server right here and not the client here. You can see that. And hopeful that how we can create these ties over information, okay? If the user will log in to your website, so this will be extending like this. And that will show you the informations of this. Okay? So this is like whoa, multiple users and the end users, some of them are using Chrome browser, some of them will be using Windows ten. Some of them will be using Linux or the Firefox browser, Safari, or operating system as the upper-right here, some of them as using the mobile operating systems as well. So here's a simple using that information. Ok, hopefully you understand now. So if you find any of the problem regarding this lecture, please let me know. And any point do not understand. Please let me know. Thanks for watching. See you in.
92. Creating the Config File: Hey guys, welcome to this lecture. In this lecture we are going to his card working a PHP login system. I will tell you that how you can create a registration page and login page in a PHP. Or you may say that how you can, how you can create a sign-up or the Login page in the PHP. And after you offer this login page, I haven't shown you that how you can show your welcome message to the user and how you can log on to your functionality. Instead of that, you can also reset your password as well. Legislator know, this lecture is totally focused on how you can create your config file with PHP. What is the config file? Config file is the configure file via a URI data-based excess is saved. How legacy? I just tried, defined here. So if you write define two simple, you have to write d phi right here. Or if you want to require too simple and you have fluoride required here. But I just cleared our Define, sorry here inside this PHP tags or this is the defined right here. And the define here is firstly, I helped write that this is database underscore host. Okay? Or here I started, M is underscore server. This is a query. You can write anything. Here, I described it that this underscore server, the local host right here. Okay, now after that, I disclose a score right here. Then here I have to define. I have to write the define as a keyword, again, user-defined function. And inside this I have to write the database underscore. Firstly, I had right username. Okay, after this user name, my user name is by defiled hell, the root username, as you know that. Now here I just define chord. Again. There I just define the DB underscore password. Okay, and here you can see that I have to write the empty string right here. After this here I just write define. And the define here is db underscore name right here, which is the database name. So the database name here is, as you can see, I'm disputing or your tablet is right now. And I'm searching the link of Localhost slash PHP, my admin, okay, very simple database link as you know that how we can create our database into the PHP. So it's that simple. You can see here, just click on New and here I just write that there is simply the login. Okay, you can see that. So my database here is being complete created. And here you can see that I just simply write the database name right here, which is the database as the login right here. Now here, writing the connection attempt that anyone will connect to your database to simply that we'll allocate. So here it is right in my SQL or SQL, which is equally as right and knew my sequel I. And this is my SQL right here, where I have to write that first liters is data-based underscore server. Then here you can see that I have right data-based underscore username. Then here I have read database underscore password. And I started your TAM is underscore name right here. Okay? And I just closest chord right here. Now, if my connections is created right here, so what will be the output? So here you can see that if this is a variable eliminate here, which is the MySQL light here. And MySQL which is equal to I have read this as a false. So you can see here this is a false statement right here. If this is not connect to simply died a connection right here, and show me the error. There. You can see that cannot or cannot connected. Okay. And then here you can see that afternoon I had to concatenate MySQL. This is my variable name. And that will Here I just read connect, underscore, enter right here. And I just grows the score right here. So you can see here, my connection has been completed right here. How let us check it out right now. So you can see here I'm just checking this. So you can see here this is my connection and my connection to your database is successfully creator. Now at that stage, I didn't show any of the connections commuting area right here with the help of equus dinner. Like our old example, just because of where we are working with a real life problem. Here, I just simply write this config file. And here I just create a connection. And then if the connection is fears of simply that will show me the error, otherwise, that will run the query and that will search my website. Hope so you understand now, in next lecture, we will see that how we can call this configure command and do you into our and other files. And with the help of that, we can create a my liberal files as well as well. We're disconnection will be same. Hopes you understand now, if you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture.
93. Creating the Database Table: Hey guys, welcome to this lecture. In this lecture we are going to create a database table with the help of my sequel where I just run my keys right here. Now here you can see there I just click on Login and I just need a SQL query. We are, I am just creating my database table. And here you can see that I am right, create, create table where I just ride the clear table name is users right here. So inside that here you can see that I have to write, I have a right firstly ID, which is an integer type and integer type which is not null. Because I just told you before that menu just taking the ID, which is the integer, that will be always not null. And we can always take the ID as the primary key. So that's why I am just writing the primary key right here. And if it auto increments right here. Then after that here you can see that I helped write user. And the user here is I have to write this in the user name. We're, I just get the user name as the var char right here, character types. And here I have read that var char is a 50 right here, and then here VARCHAR is not. Okay. And that is also a unique because this username is also always be unique bad because that you can only select one user name right here. Knowing that here after that I am disputing the password is password. And the password here is USA dot, that is a var char. And this is also a var ij. Here we are. I just said the collectors here are 2W five if you want, write 405060. So this is up to you, which is also not null right here. Okay? Now after that here you can see that I have to write that this is created. Which means that I just show the timestamp as well to you guys. We're isis, right? Date and time, which is the current default. Default, and then this is current time stamp. Okay? And then here I just close this core, Okay? Now and I just run this query right here. So you can see here, by this database is successfully created our table and we are the fields here, our login. And inside this login field, we have the user table. And inside this unit User table we have the several types of where triggers, VR, I just get the date, password, username, and ID. That what is the ID? What is the user name? What is the possible of debt and when this username and password is created right here. You can see that how simple we create our tables right here. If you find any of the problem that you've learned in this lecture, please let me know and thanks for watching.
94. Creating the Registration Form: Hey guys, welcome to this lecture. In this lecture we are going to talking about that, how you can get the registration form with this project. For that purpose, we just need to add our PHP file right here. So you can see here, I'm just shooting a PHP tag and offered their hair. You can see that I just simply write require statement or you helped write that. I will require once. Okay. And then here I have to write that simply. I have read this config dot PHP file. So you can see here, I just write this configured PHP file here inside this required once Turner. Okay, then here I just closed the score. Now how to continue that? I just didn't glued my config file in PHP file. Now here you can see that I have nuclei at the username right here, which is my variable. And then here I just create a new variable which is equal to the password. This means that if the username, which is equal to password and the possible which is equal to here, he's right there. Current password. Confirm, underscored, this isn't possible right here, and which is equal to empty string because I'm just taking the user input right here. Now here you can see that I'm just defining the variables and I am just initialize this variable right here, did empty values. Okay? Now here you can see that if my user name underscore adder, this is equal to here. You can see that my password underscore adder average is equal to here. You can see that there is kind of firm underscore and confirm password underscore adder, which is equal to empty string. What does that mean? This means that if this username is not matched, so then this gentleman right here, so this is just a variables. So I'm not making the concept right here. Now here you can see that I am disputing the if statement. So if here you can see that dollar sign underscore, I'm just getting the server and the server here will generate the request. The request right here. The request underscore here demonstrating that this is a matter and the matter here is equal to. You can see that I'm just writing that this is the post method right here. So that formula we proceed when you just submit your data right here, Okay? Now here, after this you can see that you have to write that. This is just our if statement. And if empty, empty here is I am writing that is trim and a trim hair is Toro centers cord. This is the post method. Here you can see that inside the schools matter, I have read that this is the username that we'll get the username right here. Now here you can see that this statement is only validate our user name right here. Okay? After this here you can see that I helped write that a username. And the username underscore error. If. This statement is not run or if the student is not her MBA. So our user name is username and Eddas statement here it'll be executed which is pleased in her username. Or if you are submitting an empty username. So that generator here you can see that I have read that symphony, get your SQL or SQL. You can select the Kumar, Good CDA, select id from user, sorry, select id from users. And here I'll just write their user name here. Otherwise, try this question mark sign, okay, which means anything that you or question mark sign, it means that it must be that is, select your ID from the database table via your username is what you add. Okay? Now after that here you can either act right if statement. And if a statement here is Einstein, this is a statement and this is just a variable right here and here I hug right there. This is my SQL or SQL command right here. And Harrison MySQL, which is getting the EPR to prepare here is my function here, which is a burden function. And then here I have to get my variable, which is SQL. Okay? Now here you can see that as the starting from this variable is taken right here, we're asserting that this is the bind underscore pedometer. Okay, this is, this is also a function right here where I just get this pedometer or underscore user name. Ok. And I just closed the score right here. So what will this statement blue. So you can see here, I'm just declaring a variable here to here this statement as the pedometers right here, okay, now offer the students can see that I'm just setting some of the pedometers. Vr I described that there is the parameters and permanent underscored the user name right here. Okay? And which is equal to here, I just feminists username and then here I have to write them. This is the post method. And then here you can see that I have to write that this is just an MIT, which will cause the user name right here. Now here you can see that I have to write one of the if statement. If his statement here is, you can see that I have right dollar n. This is the statement variable right here, which will be executed this statement right here. Okay, so this is treatment and execute right here. And that will be the attempt of execute between PDA prepared statement. Okay, now here, you can see that after this here you can see that I have, right? This is taken right here, and this statement here, which is TOR underscore reserve. Okay? So this is our reserve. Reserve does match with your username or not. Ok, now here you can see, now I guess, right. And if here is, you can see that I have right there is this statement right here, which is my variable, and this statement which is getting the, you can see that numbers of rows and which is equal, equal to illustrate one. Okay? Then here you can see I have right username and the username underscore eta right here, which you can see that this is username or this user name is already taken. Okay, now here you can see what does that mean? If this is statement or if your username is already available into the database with this message than me or this arrow religion retribution guys. Okay, now here you can see that I have, right? This is the L statement. And here you can see that this is the L statement. And L here is, you can see that I have right equal. Equal is you can see that something went wrong. Please. Try again. Okay. Here. If little messages not generated. So here, this message will be go to the else statement where the message here is something went wrong. Please try again. So this massive generator at that case. And now here I just closed the statement for the user name right here. Okay? So what does I actually did write here for the username C? Possibly you can see that this is the username password and this is equal to the confirm possible. Which means that if the username, password and confirm password is meet students who didn't go to the next statement, otherwise, they are transgender. Right here. Here you can see that I described if dollar sign underscore server method, which is request that required a method of post. So if this is empty, so simply you have the right username right here. That is, until you earned it the name, which means that if you leave you a username empty right here. So this method in the gender continuum, guys, then if you add some of the username like here, a, b, c. So then that will select from user where username is, what you type in textbooks. Now here consider if a statement is equal to o. So it is equal to SQL, which is preparing and database service command in SQL right here, which is my variable to the database. Then here you can see that this is a statement of by. So this is a binding let evil right here. And I just set the parameters right here, which is pedometer harem underscore username that allows her claim the postmaster and check the username right here and execute this command. If this result is Nash right here, or if this result is already available right here into the database, simply that will generate an error if this resultants also, or if this statement is not taken to you guys or something went wrong. So simply this statement. Shows to you, okay, now just come to the password field right here, that what we do with a possible, seems a case like or username, we can create some of the variables to our passwords, as was that legend check. So here you can see that I'm just copying this statement right here where you can see that empty string then trim. And here you can see, so here I'm just validating a password right here. So if empty, if empty, tremor, post method, where I just get the password right here and please enter password. This is straight Murray seemed like our username. And here I just simply plays this variable in the password right here. Okay? Now here you can see this is closing that. Now here you can see I just go to the as Superman right here where you can see that I am just writing this is as if and the else if the statement here is undertaking the string length right here, which is my function here. Okay, now here I am just tremendous string gland right here. And here I have write down, this is the other centers score was matter why itis used this as trim lands right here because I am just setting the land to the password. You can use ten size of password or ten, correct use of password, five characters of passwords. It couldn't different power four. So this is just a length of that password here. Okay? Now we're going to start that this password summer, which is here. You can see that I have read that. This is just our connectors of password right here, okay? And here you can see that I have to write that this is the password underscore at already. But if you do not write Edward collectors of passwords through this message to you guys that please enter at least correctors, okay? And then I disclose a score right here. Now here you can see that I just go over the answers treatment I was here is I have to write that this is the password, which is equal to here your stride trim. Then this is the post method right here. And inside this post method I described that this password right here. Ok. Here you can see firstly, I just use this trim matter seems a case like username. That will check that please enter a username here. Okay? After this, if you add less than eight characters of passwords, so dismissive, degenerate guys, and hear if all of these conditions are matched to simply that Millicent believe caused your password to the database. Now here you can see that I'm just copying this statement again. And here I'm just using this for up Validate Password hazard that firstly you have to enter the password. Then here you can see that you have to confirm that password as well. So you can see that I have to write them. This is confirm underscore password where you can see that this is. Like Confirm underscore password, which is the adder right here and Ps inter, or please confirm a password. Okay? Then here you can see that I have to go to the else condition right here. In the else condition here is I have to write that this is confirm underscore path or variables where I'm just writing the confirm underscore pattern here now having just trim their password, which is getting the postmaster. And the post matter here is I have read and this is kind of firm underscore password right here. Okay? And then here I just closed the score. Now here you can see that I have to write that. This is the if statement. Okay, so if this password is empty right here, simply you have to get the password. And the password here, the adder, okay? And then here you can see that I have read this and sign. And then here you can see that this is simply matching the password. If this password is not matched, did confirm password. You can see here confirm password. So you have to write that. Confirm underscore. Underscore, add a right here. So this will generate this variable ratio. So I am just copying entering. So here you can see the average is equal to, here I write that error which is equal to here inside that password, did not match. Okay? You can see that this message and b generator to the user right here helps you understand now. Now here I am just adding the interests to the database right now. How nurses check here, you can see that I have right? That if empty and the empty here is, you can see that this is the username, our underscore, ADA, okay, then here I just use n statement. And then here, this is the empty state, right here. We're either the password underscore adder. Okay, you can see that now here I am just adding one other statement right here, which is add statement. We're demonstrating that this is empty statement right here. And the empty statement here is also that BDA, confirm possible right here. Okay? And confirm password underscore here. Now here you can see this right here. Okay? Now here you can see I'm just checking the input adder before inserting the database. Okay? Here you can see that all of these, I am just taking the input site here. So you can see here after this errors, I'm just creating one of these SQL command right here where you can see that I have to write that insert into users. We're the user name, password. So you can see here and then here I have to write that these are the values. And the values here are unknown because these values is. Enter by the user right here. Okay? Now here you can see that if statement, so if statement is my variable here, which is equal to here. You can see that I write down this is MySQL. Mysql images guarding the ok. And with that, we'll get the Kumar like SQL. Okay? Now here you can see, so this is statement and here you can see that this statement is same like here. We are. I just get the collect Kumar and here we are going to insert into that mark right here. Okay? So after this, I have write statement which will be blind underscore pentameter. Okay, so here I'm just taking the blind karmic right here where you can see that I have right than this if pedometer underscore is a parameter underscore username. Okay, and then here you can see that that is a parameter underscore password right here. And here I disclosed score right here, okay? Now, if VD clear these parameters right here, we are the parameters username and the pedometers Here are the passport who may need to set the parameters as well, where you can see that we have to add that to the parameter r underscore username, which is equal to where N is getting the venue, like username. And then here you can see that pedometer underscore password. Okay, we can see that this is pedometers score possible, which is getting the password underscore the password head is hash. Why I am taking this hashed password because if you do not take the hash password, so the plane takes text will be moved to your database and which is unsecure. Ok, you can see here, if you hash your password, your password will be sunlight in Judah database, right? Assuming the arrow right here, which is admin and is the mind steric. Ok, here you can see. So we have to set the possible right here, which is my variable, and then offer this here. You can see that I have read that this is the password. The password here is i are correct that this is the default possible. Ok. So this is the default password. Okay, so where you can see that I'm just creating the password here is hash and taking the before password right here. Now here I am just writing if statement. And here I just write statement, which is this, and here is execute statement right here. And then here you can see that I have to write that. So this will be the execute papers take me right here and now here you can see that I joke, right? Header and header will be, you can see here I have to give it the location link via you can get the login access. So you had I just started on, this is simply login dot PHP file. So here, if this username, password and match and you're completely successful needs for direct login dot PHP file right here. And I just close this file right here. Now here I just go to the answer statement. And the statement here is the equal and equal here is something went wrong. And try again. And then here I disclose the score right? Now for that here I'm starting there, this is taken and this is closed right here. Okay? So you can see I'm disclosing this statement. Now after this here you can see that I am to closing my SQL and MySQL I here. Close, we're, I'm disclosing the connection of MySQL. Okay, now here you can see. So you can see, I'm done with the registration page right here, PHP section. Now, under simple liquid eating some of the front end of your webpage right here. Okay, now here you can see that. You can see here, I'm just creating that have red. This is the DIV tag. So you can see here that this is a DIV. Div is a class o right here. Why I am just using the wrapper class with this isn't just a bootstrap class. You're taking this class as a rapper right here. Here you can see that I'm just taking the heading of heading number three, IT area I inserting the heading, this is the signup. Okay? Now after that here you can see that I have to guard the paragraph link right here that please phil form for creating your column. Ok. Now for that here you can see I have to write that if the form, form will take the action right here. And the action here is I have read that this is a PHP. And PHP here is equal and which is, and this is HTML special characters. This is HTML special characters right here. I just pause. This includes SAR whirling. And I'll just write this PHP underscore cell. Okay, and then here, I just close this call right here. Okay? And this is how we are closing or code inside this. And this is the PHP code. And then here I'm inserting the matter, which is the method of matter right here. You can see that. And I just close this code right here. Okay, now here you can see, now after that, here I just cleared. And this is our DIV, DIV tag class. And the class here is, you can see that the score. Okay, so this is just a class right here. And then after that here you can see that I have derived that this is PHP VM is preventing the equal and equal is demonstrating if this is empty. So simply getting the variable user name underscore at risk means that we simply generate an adder right here, okay? And then after that here you can see that you have right, that this has ETO right here, which is bootstrap class. And then here I have correctness is the empty string. We really get the message from this user name underscore adder right here. And then here you can see that I have to close this cool right here. Okay? And here you can see that there is closest score right here. Okay, nurses, nurse, fine now. Okay, now here you can see. Now it's fine. Now here you can see I have to create one labeled right here. So this is the label. Label here is the user name. Okay? And then operand here you can see that M is taking the input right here. And the input here is, you can see that that is a type of text. And then here you can see that there is getting the name and the name here is the user name, okay? What we create a variable of username right here. Now, here I am just writing the class. And the class here is form, and that is a form control class here. Okay? And then here I'm spreading value. And the value here is I have to write that this is a PHP quarters is equal and equal. We'll get the variable user name right here, okay? And then I have to closest score right here. Helps you understand all of his writings span class and Hispanic class here is that will be held block. Okay, and here I have the closest. And starting the PHP code right area, you can see that there's an equal that will bring the user name right here. Underscore error, if you are some lake, you cannot add your username right here. So this messaging me, generator night here. Okay? Now it's fine now. No executing the same functionality for the password asthma. So here you can see that this is the password. Here. I'm just replacing this for the password underscore eta right here. Okay. No hair after this, you can see that on the pleas of user names and we just simply place the password right here. Okay, so this is password hair. And you can see there this is a possible right here is an equal username, here is the password, okay? And this is also a password underscore. And a right here you can see that. So here you can see this in the password. And then here you can see that I have pieces again for the worm paths were Adler. So you can see here I have to write that this is underscore password, underscore eta right here. So copy and paste it right here. And this is here, am striking there. Confirm underscore. Your greatness is confirm underscore possible, right? And here I have to write that this is confirm underscore possible. Ok. So this is just a text or confirm password. So you can see here the pumps donating for the confirm password, password and username is computed right here. And now we just turn to the veterans right here. You can see that I have rightness, the VAB tag with the class forum, and a class of form. And here you can see them. This is a class of form group ranks. And then close the score right? Now here I'm just taking the user input and the input here. As you can see that our type of buttons on this button here is submit. Now here we consider this is a class of btn and btn, and that will give me the look right here, which is the primary button right here. So this is just a Bootstrap. So you have to learn about that because Bootstrap is Franklin language. So these are tags are using right there. Okay, now here you can see that the value of that button here is submit. This is here. You can see that this is a Submit button right here, Okay, now here and just copy this and the pin painted right here and now here I'm asserting that this is the type of the reset right here, okay? And this type of reset right here. And then here you can see that this allows for research right here. And the mortality look here. You can see that that is okay. And you can see a glass btn, btn, and this is the far right here. Now, here you can see that this is a DIV. And then here you can see that if the username and the password is already registered. So you can see here if you, if you already have Nicol and this already right here, so that will move link right here, which is a hyperlink right here, and which is HREF. Near you can link your login page right here. Okay. So this is how I'm citing login pain, but I am not getting the login page right now. Okay. Login page here is in the next lecture. So you can login here. So this is just a functionality me how to create. In this lecture, you can see that this is just our registration page. Hopefully you understand now, if you have any problem regarding the lecture, please let me know. And thanks for watching this lecture.
95. Creating the Login Form: Hey guys, welcome to this lecture. In this lecture we are going to talking about the login system in the PHP that how we can create a login functionality in the PHP. We already studied mode, that is a station right here. But now here you can see that v can work with login admin in last lecture where I just missed, which is a link of the Bootstrap. What I'm linking in right here. You can see that this is just a bootstrapping. So don't worry about that. This is just a Bootstrap styling. This is not discourse worked right here. And you can see that this is just Morita hydrate hemorrhages and assembly providing forums. It's font size, 14 pixels. This is a fourth right here. This color is the hurt and the padding right here. And I just run this coordinate to the brows right here. You will find that in the Chrome where you can see that this is just color. This is the text right here, and this is all of the texts, what we already worked with. Okay? Now here you can see I'm just going to the PSP, PSP login section. Inside the login right here, we have to add that this is just a PHP tag and then closes PSU tag right here. Some of the functionalities to me how to take from our old lecture as well. So you can see here I'm illustrating this session's underscore. Is tar, recession underscores taught right here. So I'm creating or I'm just initializing only the session right here. So you will know about this session. This is as it is here, I'm stating that this is the dollar sign underscore here as this is Sandra score session. And this session will be like this. And this session will be logged in. So this is just a login session right here, okay? Now here you can see that I'm just writing the add operator right after this here. As you can see that I have granted this is getting the session right here, where I have read that this is a login session, which is equal equal to tonight here. Okay? Now here you can see that I have read and this is the header. And header will get the location and the location here with me. And next page right here, okay, after this, that will be moved q-dot index dot PHP file writer. Okay, very simple. This session will be I am moved through when I'm just going to be login. So that will be moved to this and next door PHP page. And then here I have read that this is the exit. Okay? So if you are already logged in, so this if this treatment or this session will be a star or that will direct you there, there will be indexed or PHP file right here again, you can see that I simply write the Institute right here. And if acid And the essence here is you can see that there is in the bracket right here. And you can see that this is a school sessions. Then session will be the login session right here. And after this login session, you have the closest session right here, and then you have the right end. And then simply login, which is true. So if you are already login, now here you can see that I just copy and copy score right here. And then here you can see that I have is this cord into this login session right? Now here, you can see that if username and the password right here match. So simply I just initialize here, this is the empty values. Now here you can see that this is user name underscore era and then possible level underscore error. Then this is also empty string right here. That is, as you can see that this is our request post method right here. And if trim, and this is you can see that empty trim and then username right here, please enter a username. Seems like he's like I understand it and just go into the else condition right here. So that's condition that will select the Kumar. But here you can see that I have to write that. Net will get the username and the username here, which trim this username right here. Read the post method right here, okay, and then here you can see that I have read and this is the username. And then close call right here. Okay? Now here you can see that I have right? That this is the if statement, which is, you can see that also here. So you can see I'm just copy and paste it right here. Okay? And there you can see, okay, if empty, which is trim post underscore here I'm writing this in the possible right here, that p is enter your password. And then else statement layer here you can see that I have this writing the password right here, which is equal to the trim post underscore password CME as a case like our old example that but okay, now here you can see that if you can see that empty underscore, sorry, this is empty. And then here you can see that I have read that this is just a statement where m is copying from that. So if password and password. So here you can see that now here I am just copying this statement right now, okay? And here you can see that I have right here. And here you can see that I strike that. Mt And then the user name underscore eta, then empty username and password underscore error right here. So I confirm password from that. And then here you can see that that will simply use the select commodity or because at our last team that will be exerting the Kumar at that state. But now here we are retrieving the records from the database. So here you can see that there we get the ID. And here you can see that there will get the user name right here. And you can see that that is the username right here. Then that will get the password as well. And then here that'll get the password from users. Where the username is empty string, okay? And the username here is, you can see that this is equal to, I have read that this is empty right here. So you can see here if this statement is equal to SQLite and this is seen for the case like or, or statement. Then here you can see that as defining them. Bind pedometers right here. You can see that that will get the username right here. Okay? Now here you can see that after this, this will be getting the user layer as as the pedometer right here, we can see that. And then here I have read that. So dollar sign is right here when we execute. Okay? And then here you can see that I have it right there. And this is just storing all the reason right here. As you can see that it's taken. And here you can see that that statement really is tall right here, which is okay. You can see here this is just for simply checking the username. Seemingly case like we are working with the password as well. So here you can see that we already work with the password section as well. So you can see here, this is just passwords, session, copying and pasting right here. So you can see that here. You can see that I just cleared this functionality for your understanding, cause the password here is confusing nature, so that's why you can see that I am just writing the if statement. So if here is, you can see that this is just as Marie chair, which is getting the number underscore. And you can see that these numbers underscore rows. So this isn't getting the rows right here which is equal, equal to one. And now here you can see right there, and this will guard this chamber right here. We are. This statement here is a statement. And this vine here is getting the result right here. Okay? We are that we will get the result of the IID, and then there will get the result of the user. Here that we'll get the name of the hashed password as well. Okay? Now, whereas now you can see that if statement and this is fetching the record right here. So you can see them if password underscore verified because this function will be verifying the possible right here. And this is a password and password here is using the hashed underscore password right here. Okay? Now here you can see that I get this question. Mark right here. Okay? If this verify the password and the user name and I'd here's recession maybe starting directly to the login page. And you see here, you can see that I have write down, this is underscore session. This session here is okay, which is equal to here. You can see that that is simply the tool. Okay, now here you can see that I have read that this is session right here. And the session here is the ionization. And then which is equal to here, I get the ID right here, okay, then that will get the ID right here. Now here, you can see that getting the session right here and this session here is, you can see that this is just a username session. So this is in double quotations and you can see here this is the username session. And we do have is getting the variable using there. Okay, you can see that the score right here. Now, after computing this session variable right here, which is storing our data, I have to write that this will go to the header. And then here you can see that I have right location. And the location of that measure is login. Nord PHP plan means that after completing this, so this will be redirected to this page right here. Okay? Now here after this you can see that hands as conditions, the else condition here will display an error message criteria. You can see that I just write that this is the password underscore adder, which is equal to here. You can see that the possibility you, how TR is incorrect. Ok, you can see that. And I screw this code right here. Now here you can see that offer this, I have to go to write one else condition again. And here you can see that you have seen that this is the username underscore ID right here. You can see that. Know your user name. Okay. You can see that. And I just closed the score right here. Now here, because I have is where do those condition again and else condition here is equal. Something went wrong again. And I just closest school. So you can see here. Okay. Now here you can see that I'm just missing some of the current is right here. And now for this here you can see that I have to write that statement. Really close the connection. Okay? Close the connection right here. And after this here you can see that I have to write that this is my SQL. And that will also closes your database connection. Okay, now here you can see this colleague breakers site here. So you can see her, my PHP code is computer eight here. Now I'm just shooting the front end for you guys that how we can connect our frontend right here. Now here I'm just going back to that page and here I'm copying this. Okay? And history right here. After this PHP code here, you can see that this is just a piece of film, the home, so I'm replacing that, please. Ok. And here you can see that as writing that login right here. Now often as you can see that this is also a PSP Stephen spelling corrector and nbsp Self and the post method as similar case like adder right here. And that will be the username right here. You can see that posting that represent the username right here. And that will get the username variable right here. And after this, you can see that anyhow, call username right here as well. Then the password AD or Angela. So I'm removing this confirm password from DAC right here. And then here you can see that I have Google do the submit button right here. Okay, now here you can see then this is the password, okay? And then here you can see that this is just our buttons right here. You can see that I'm instituting the Martin coordinate submit plans to moving that he's had broken because we do not need a trait. And a submit button is a table submit, btn, btn-primary. And here you can see that that will simply get the login right here, okay? And the value here is in login. I decided that do not have a column called column. So simply go to the link of PHP. And here you can see that sign up here. So this is just a front end of your login page right here. You can see that you can symbolically, or you can simply write the username and password. And you can get the access. And if you get the access would simply you have to. This session is tarred right here we are. You can get this login dot PHP. And after this you can see that you have to go to the index PHP file. So I'm just copying this core editor. He stood in the header section or fewer. But you can see that. So this is just a login consonant in VR creating right here in this project. So here you can see if you find any problem regarding this lecture. Please let me know and thanks for watching this lecture.
96. Creating the Landing Page: Hey guys, welcome to this lecture. And in this lecture I am going to show you that when you are just login to your page. So after this login page, up, page, redirect to the index page, what is your website of the page? Or you may say that it is your dashboard or it is your profile page. So after login, menu are just moving to your landing page. So we are creating the functionality like this. So here you can see that I have to write PHP tag right here and now discloses PHP tag. Now here you can see that I am distributing the session and the session underscore. This session is a start function right here, okay? Now here you can see that I'm just initialize a session right here. Now here you can see I just write if, if acid and if as yet, then dad will get the session. Session here is usaid at this session here is logged in session. Okay, now here you can see that if the user is logged in to this session will be redirect. Or if the user didn't login means that if you are logged in, so this will be moved to the landing page. And if this is not logged in, so that will be moved to the login, to the PHP file again and ask the user that human login again right here. Okay? Now here I just write this operator sign here, and then I will just write that this is session right here. Okay? Now here, this session here is I have a right that this is logged in right here, okay? And then here I naught which is equal to two. Okay? And now here you can see that I have derived that. And this is, sorry, this is a session right here. And this is the logic login session. And now here which is not true, okay? Now here you can see, so here you can see that I just derived session is a start. If your session is already logged in or your session will be login true. So means that if you did not logged in and you are searching to the index page right here. So that will simply move your page or redirect to your page, to the Header. And now you can see that this is a location and the location here is login dot PHP page right here. Ok. Hopefully you understand now, but that will simply move to you. That is login dot PHP file. Okay? Now here you can see that I have to close the score right here. And after this, I have to use exit function. Then you will see that again, go to the login page and enter your credentials and then you get the excess of the lending period, right. Now here you can see, I just copy these. And you can see here I'm displacing this into the header section. Okay? Now here you can see that simply me how to do closes. This is my body, which is a form of 14 pixels sharp like right here. Now here you can see that I have to write that this is text. And the text here is a line. And the alignment of the text here isn't center right here. Okay? You can see that the alignment of the text here isn't center. Okay? And then here I disclose a score right here. Color right here, okay, now here you can see this is just the alignment of the text for damnedest fruiting right here. Now here inside this, I'm just creating that are DIV tag. And the DIV tag here is the class of pH, and the pH here is, okay. Now here I'm just defining the header right here. And the header here is high. Then here you can see that I have to write this PHP tag. And the PHP tag here will be the equal and the equal here, you will be getting that HTML is special character. Ok, and here you can see that that will get dollar sign underscore session. And the session here is that we'll get the username, that we'll get the high. Firstly that will print hi and then username. And then you can see here after this. So for this score here you can see, here you can see that the shoulder edit that. Welcome to the landing page. Ok, here you can see that this message is shows to the user. You can see that firstly that we'll find the high message, then that will get the user name. Ok. Where did the username like high 1-2-3, 4-5-6. This is any username, what is user into right here. And then you can see here, welcome to the landing page right here. Okay. Now here after this you can see there I'm distributing the paragraph tag right here. And inside the pedagogue, I'm just linking the side right here, which is HREF. And the edge E F here is, you can see that I have right? That if you want to logged out your page to simply when you're just clicking on that link. So simply you have to logged out of the page right here. Okay? And then I just close a score right here. Now here you can see that I have to write that this is sine out your economy. Okay? So here you can see that I'm just linking these two, the sign of functionality, what we are distributing Next. And here you can see that I'm just creating the class. And the class here is btn and the btn here is danger. So I'm just creating this word, an advantage right here. Okay, now here you can see my, this functionality is created right here. And now here you can see that. And I just run this score right here. So that will directly move to the login page right here because we didn't not log in right here. So you can see here, my this statement is executed right here that if this session is not login, so simply that we'll move to the login dot PHP file here. Ok, here you can see I just simply access this index file and that will move to the login file right here, helps you understand now. So if you're not understanding the pint regarding to this lecture, please let me know and thanks for watching this lecture.
97. Creating the Logout Page: Hey guys, welcome to this lecture. In this lecture we are going to talk about how you can set your login functionality or login is trip to your code that after login you have logged out as well. In this section, in this lecture, I'm just going to execute this project as well, okay, now here you can see that possibly I am just writing this BSP core and then closest PHP code right here. I'm just starting my session right here, okay? And here you can see that I'm just initialize my session. Now here, after this session, I have arrived at this dollar sign underscore session right here. And the session here is equal to, I have to get the added right here. Ok, here you can see that I just define all onset of the sessions variable here, which is available inside the variable. Now after this here you can see that I have to write session. And the session here is I have arrived at that session here is desk dry. And then close the score. So here I just desktop session right here. Now here this isn't a header and after the logout or upper clicking the logo out here. So that will be going to that will be redirecting to the login page right here, which is the login dot PHP file right here. And then here I just closest chord. And after this, this is an XOR function. So my dysfunctionality core, the logo is completed right here. You can see that this is very simple core, as you can see that simply start a session such as unset of sessions variable. Then let's try the page at after then that will lead directly to the login dot PHP file. Now I'm just executing this project. Ok. So here, now you can see I just run the score right now and hear that we'll move to the login page right here. The beginning, we didn't have any of the ICO. I just click on sign up here and here I just right there. This is hello, or here IS right, that, that user, 1-2-3, which is my user name right here. Then here I just write the password 1-2-3, 4-5-6. At initially you can see that 123456. So you can see how managers submit this. So that will show me the option that please must help. Your password must hell the eight characters right here. You can see that it's right, 1-2-3, 4-5-6, 1-2-3, 4-5-6 right here. This is also a reset button. So you can see here you can reset your password as well to 1-2-3, 4-5-6, salen eight right here, 12345678, right here. Okay. And I just click on submit. So you can see here my account has been completed and that window will move Buddha login dot PHP file. And I just refreshed this. You will find that this is my username and this is the hashed password which is encrypted password saved into the database. And this is a created at 20-20 and then for two, and this is the time of that. Okay? Now here you can see that when I just click on this user 1-2-3 right here, and here is really 12345678. And it is click on login here. So you can see here firstly that we'll get the high, but we are defining the index page, then that will get the username. So you can see here I just tell you that, that it also got the username right here. And welcome to the landing page. Here you can see that ice right. Sign up. Sign up your record. So I just tell you that you can also create a signer or sign-out functionality. And that was danger button. You can see here that while the debt will be btn, btn, and here I just write a danger right here in the lecture. You just click on this logo so you can see a, you're application has been logo and you can create your multiple accounts as a little help of that, you can see here, you can click on Login. And then here you can see that this is the user right here. And this, you can see click on, you can simply login to your recall as well. So you can see here this is also saving your cookies as well. Okay? And here you can see this password is encrypted as well and this is using hash password. Hopes you understand now how you can create your login functionality, which is very simple. If you find any of the problem regarding to any of the lecture, please let me know and thanks for watching this lecture. And I am also linked the coding file of this project as well. So you understand now, thanks for watching.
98. Create Back-End Connectivity: Hey guys, welcome to this project. In this project we are going to talking about that. You can get a shopping cart in PHP. For that purpose. I just need to take the first one is front end of the website, then the background of the website and the database where we save our entries. Here you can see that I have to write a PHP tag here. So this lecture is totally focused on the PHP lecturer. And you will see that how we can connect our PHP right here. Here you can see that I have right session and the session here is is talk. So here I'm just starting the PHP sessions right here. After this, you can see here I have write SQL. Sql which is equal to MySQL I. We are, this is a SQL command, hair and hair eyes, right? This is connected. So here you can see that I have to connect the SQL database and this PHP script. So here you can see that I have described this is the local host. Local host is my server right here. And then here you can see that I have derived ruled, which is my database username, and this is the empty string, which is a database user password. And here you can see that I have right, that this is let suppose shopping. So swapping here is I want to create our database right here. You can see I have to search localhost and PHP, my admin right here. Inside this, you can see here I have nucleated shopping as the database name. Okay, you can see here, so my connectivity in the database, it's successful. Now. Now here, after this I have write if and if acid and the acid here is I have to write this is the post method. And the post method here is firstly, I have to write that this is AD card. So add card is, I want to create this ad car functionality into this database, or I will add this card function energy to this database, which is a shopping right here. Okay? This is the next pulses, but here I just initialize this field right here, or this attribute right here. Now here I just write it as IT. And the assert here is I have nucleate session. And the session here is I will create, this is shopping cart session right here. Okay? And then you can see here, I will write that item. And the item here is the Adi ID, which is equal to here. You can see that I have to write Eddie and Eddie underscore. I'm inserting the added color right here. And we're, I just said the session. And the session here is I will print this session, which is shopping cart. So I will run this shopping cart session right here into that. Now for this, I have right item. And the item here is, you can see that this is an item ID right here, okay? And I just closed the score right here. You can see here I just initialize this session arrow right here. And after this, you can see that and say, okay, now you can see that here. I have to write if statement. So if not, the northern assign and I started in eddy, means that if this statement is not an ad is simply you have right. Get the ID. And then here you can see that I have to write that, that will get the item. And the item here is, you can see that this is the item Eddie, ID. Okay? Now here you can see that I have opened this statement right now. And here, firstly, I have to set the variable count is equal to the value of the count here. And then here I have derived that this is the fashion here. And the session here is shopping card, okay? And then I sclerosis code right here. Now for this here you can see that I have to write the item and the item's here are added to her. I just take the eddy and the added here are that item and the item ID is equal to here I just said, the get method. And then here this method will get the IID. Then here for this you can see I have to write that this is item and the item name right here, okay? And the item name here is equal to 2p, right? That, that is simply the post method. And the post method here is I have to set the name. Okay? Then after this you can see here I have to set item. And the item is the prize right here. Okay? And here it is equal to. You can see that I have to write that this is just a postmaster. And the cost here is I have to write that this is I prime and that is closest chord. And you can see here, I have to write items and the item quantity because venue or just working with a short McCarter to foster that statement will be have an ID, then the statement how the name, then the price of their shopping cart, and then the quality. Because quantity, how much quantity you want to add into the car can then here you can see that I have derived them. This is the post method. In the post method here is I have arrived at this quantity right here, okay? And then I just close a score right here. So you can see that. And here as you can see, we did a little mistake right here we are. I just tried the coma science. Science IT okay. Okay, now it's fine. Now. Then another thing, which is, I started a single quotations to it. Okay? Now you're going to see that these are the single quotation mark. And now it's fine now. And you can see that. And after this here you can see, I have to write that. This is an item, okay, it's fine. And you can see that here. Okay, it's time. Now for this, you can see here I have to write that session. And decision here is I have to write that this is shopping cart session. Okay? And then here you can see that I just get, and this is a shopping cart session. And then here you can see that I just get the variable column right here. Okay? This is equal to here is this is item adding. Okay? Now offer this. You can see here I have to go to the else condition right here. And you can see that this is an else condition. Here is I have to bring the message of that. We are, I have to print one of these script right here we are. You can see that that is a, that is just alert, skip all of the JavaScript. So when you are just alerting Some of the message into the JavaScript, you have to add. This could impact than alert. And then you can see that the item is already added. Means that the one time you have to select the item, then if you want to print the item one time to simply run this script, otherwise, leave it, okay, so I just Var1, add one slip at one time, okay, sorry, one item at runtime. Then here you can see that after this, I just go to add. Here is go to add else condition right here and the L's here is I have to add variable item and the item adder, which is equal to here, he's right, this is an arrow right here. Okay? Now here you can see that I have blue copy and paste this code right here. Okay? You can see and I'm positioning it. So you can see now neuroscience, CME as a case like or, or examples of simply I have to run this statement again to that. Now here for this annulus, writing this double quotations mark right here. Then here I'm just copy same script. And now here I am just run it again. So that count will be starting from 0 right now, okay? Now here you can see I'm just positioning it right now. So you can see right now here you can see. So how simple is it? Now from this you can see here, firstly, I have to remove this because there is no need of head. And here you can see that I have to write this curly bracket sign of closing tag. Okay, now here you can see that I have to go to one another if statement right here. And if acid and the acid here is, you can see that I have right there that will get the variable right here. This is a getter method, and here you can see that I am, I just using the action right here. Okay, now after this, you can see here this is if a student again. And if here you can see that I have derived that this is. Underscore getMethod. And the gut here is action. And then here you can see that the action which is equal to I have to write the action is deleted. This means that venue are just deleting the cart or when you are deleting some of the items on the car. So this actually perform at that stage. Now here I just write this for each loop. And the for each loop here is session, which is dollar sign underscore session. And now here you can see that I have right there, this is shopping cart, okay? You can see that. And the shopping cart here, you can see that as the keys. And then which is equal to here, I just write that there is the values, okay? Now here you can see that if values, and here you can see that this is the value variable right here. And the values here is, I have to write it. This is item ID. So firstly, I have to get the item ID right here, and then this is equal to here. I just write the get method and then we'll get the ID right here. Okay? Now offer this. I helped write that unset. The unsat means that this uncertainty in that I just unsaid all of these variables right here. So here you can see that I have to write this is the session. And the session here is shopping cart, okay? And then here I will get the value of the key as well. Okay, you can see that. And then here I just close this key right now. So here you can see that this means, this means that here I am just unsaid all of these variables, which isn't shopping card. Okay? Now here you can see that I have right equal. And the equal here is I have to run this script tag right here. And now I just show alert message where I decide item, item removed. And then here you can see that after this I have to write that. This is or sorry. Yes, this is an air. I just close this script tag right here. Ok. And same is the case like here. You can see that I'm just creating this four. Here. You can see that this is a script tag. And inside this script tag, I just want to write window. And the window here is I decide Dart and location. And the location which is equal to fuzzy, I just get this is the name of that obligation, which is the index dot PHP. This will just refresh of that application and that will move to the inlet dot PHP right here. But this is already in the indexer PSB, so don't worry about that. So I just remove these two options, right? Okay, now here you can see, so this is just a chord, what we created for the backend of the PHP right here. Now here you can see there and I just closes this statement right here. And then here I have to write that. This is in quotations marks. You can see that. And here you can see there this is just an underscore edit right here. Okay. In next lecture, we will go to the front end and I will explain all of the court for you. Thanks for watching. See you in next lecture.
99. Create Front-End Connectivity: Hey guys, welcome to this lecture. In this lecture we are willing to complete or a shopping cart. Here you can see that in last lecture we have an arrow right here. We can just add some of the extra parentheses that I know often that physical fall islands explaining this score for you and then move on to the wall. Here you can see that this is the session is tartrate here and there I just hit start the session all dad page right here. After this you can see here I just tried variable, which is doing the connection of the database right? After this, you can see here that add card means that venue just adding some of the items into card. So this is typically done at that stage. We're just add something into the card and that will get DID named price and quantity advert. After this, you can see that it allows to coding that as well. This means that if you already added one items into the car, not acceptable. Okay? Now after that, here you can see that this is the address, size, area, id, name, and price and quantity as well. Okay? Now here you can see that the card is empty right here, and that will get the variable item add right here. Okay? Now, this is a very simple core, what we already done in the PHP. Now you just see that I am just adding one of the link right here, which is posted a link here. And this is a link of bootstrap quantized, okay? And this is just our designing links. Okay? Don't worry about that. This is just a link right here, coordinate designing. Now after that, here you can see that I have to ask some of the beard hang into the morning right here. And after this year is right, DID DIE VR. I just take the class container right here to container class is used in the bootstrap. Ok, so we are not talking about the boost up. We're just going to simply design UI right here. Okay, So I said beard had enough and here I said heading number correct here where I just a line myText and Gou Center. And after that, here the text here is shopping cart in PHP. Okay? Now here you can see that offer this, I have to write the PHP tag right here. And after this PHP tag, I have ux plus k1 statement right here. We, I'm just right here. You can see that this is Select, is grown. And then here you can see that I have arrived at this table underscore product, ok. Here you can see that I am disputing that table underscored product right here. So I will clear this table underscore carta letter and after this lecture. So you can see that. Here I am inserting the ordered list right here. You can see here I write order by ID. And now you can see here I just said, which is select from table underscore product via. These products are ordered by ID and ID here is in, is in ascending order. Ok? And now here, I'm closing this tag. Right now. We can now offer this here. You can see that I'm just running. And the result here is equal to a hug, right? And my SQL is running here. And here I am just writing and this isn't just a connect and connect here is I have write that that is. Okay. So as you can see here, this connect and acuity here is two variables right here, okay? Now offered this here you can see that I'm just running if his statement and if here is, I have to write that this is my sequelae underscore. I have to write or I have to run the QT criteria. And this could even be, sorry, we already run this MySQL, I am just going to create him. And now here you can see that I had to write my SQL underscore. Here I have the right number. And the number here is getting from the rows right here where I'm just setting the result and the result here is greater than 0. Okay? Now here you can see that while. So while here you can see that dollar sign row, which is equal to here, I have read that this is a must equal ay is underscore here. I'm just stretching the editor right here where I just fed. Okay? Now here you can see, so this is how you can see that I'm just symphony fetching the result of that here. Okay? Now, as you can see, after this, I have to write that lay call. Da we tag. And the DA we tag here is, so firstly, this is in the DIV tag and the DIV tag here is the class of here. I'm setting the color colon here is MD, and the MD here is, I'm setting the MLE for columns means that. So I will show you this md for colons in the man, I'm just running you score. Okay? Now here you can see that much of what I just actually did running the query, select star from table product and order BY ID, which is in descending order. Okay, now to live here, listen to the desert. And now here I'm stunningly QED of MySQL, which is connected right here, and then read QT right here. Now after this, I just turn the reason cumulate her and fetch all of the records from the reserve. Now instead this front end section, I am just creating a form. And the form here is the method of post right here, Okay? Now here after this I am just writing the form here, which is the action. And the action here is I'm setting this into the index.html. Okay? And then after this here you can see that I have right, that this action here is equal to I have to write some R. And this X1 is equal to I have write add and ID, which is equal to here IS right there. This ID here is PHP. And equal that will get the ID from the variable row right here. Okay, and then here I have to write that this is getting from the database ID right here, and I just scroll this code right here. Okay? And then close the score. No offer this here you can see that I helped write the DIV tag here. And the DIV tag here is, you can see that I have to write that this is just eyes tile. And this title here is I have arrived and which is equal to plus D-I-R right at the border. And the border here is three pixel solid. Sorry for that. The border here and the border here is equal to i style border. And the border here is three, sorry, which is three pixel. And here this is solid. I had to write solid blue. Okay? Then after that here you can see that I have to start the background. Background here is the color. And the color here is I have arrived at the white column, or here I write the background color here is light green. Ok, so any colour you have air right here. So by default I am setting the scholar as the widescreen. And now here I'm setting the border, which is the radius. And the radius here is five pixel. Ok? Now here you can see, I have to write that this is radius. And then here you can see that this is just padding right here. And after this padding. And you can see that here. And the padding here, which is equal to I have arrived at padding is 16 pixels right here. Okay? Now here you can see that I'm just defining this is the alignment. And here you can see that I just write this as a text alignment right here. And the alignment here is in center. Okay? And you can see that I have to write that image. The image here is as RC and the SRC, which is equal to here. I'll write that, that will get the images slash here. You can see that I have to write that this is just a PHP tag. We're I just write equal. Equal will be getting the variable row right here. And then here I will write. Variable for the images right here. And then after this here you can see that I have to close this core right now, okay, now here you can see that this is just a class and the class which is equal to her eyes, right? This is image and image here is responsible. And here you can see that I have good close in this code right here. Now you can see, okay. Now you can see after this ion is creating one of the folder right here, which is a name of images right here because you can see here these images is saved into that folder. So I'm just simply given the link of that folders right here. Okay, you can see that. Now here you can see that I'm just copy and pasted this code right here. And after this, you can see here I have to write that this is h3 tag and S3 tag here is the class and the class which is equal to here. I'm just writing that this is just our text and the text here is right here, okay? And you can see that I just remove this and now you can see here and the name is, you can see that I have to write them. This is just a PHP tag right here. And it says the PHP tag I helped write equal and equal here is row, okay? And inside this rule, I have to get the name right here. Okay? And then I just close this code right here. And you can see that this PHP. And after this, we have to close this heading number three right here. Okay? Now you can see, so this is just a form tag right here. So after this you can see I have to add the heading right here, which is for CME as a case length is heading number three right here. And which is also, I have to write, this is let suppose the class of danger right here. And we're, I just tried the PHP prize here. Php tag here. We, I just get the prize firstly and upper Stevia to getting the name. And now here you can see that I was getting the prize right here. Now after this here I must write this is the input. And the input here is the type of text. Okay? Now here this is a type of the text right here we are. You can see that this is just a name. And the name here is, I have to write that this is a quantity. Now here the value is one and the class here is like form and the form control. Okay? Now, input, input is a type. All you can see that I have to write the type of hidden. And the hidden here is the name is, you can see that this is let suppose in our last lecture, you can see that here I have to write the name here is, you can see this is I name. Okay. And this is I name is OK. It's fine. Now here you can see that we have the name of that tag. Here is firstly I have derived and this is I name. And then here you can see that I have to write that the value here of this name here is PHP. And then here you can see they're equal. And I just run a row air, I just get the row name. Row here is the name. Okay? Now here I have to close this code right here. Now you can see that this is just a input right here, which is a type of submit. So usually the type of the type and the type is equal to Harris, right? Hidden. And the hidden here is name, and the name here is I have read and this is I prize. So these are just a name right here when I was creating where I have arrived at this lake, her copy and paste right here and you can see here this is the price, okay? Now after this, you can see here, I have to write that this is the input. And input here is the titles. And you can see that this is the input. Input here is the type of submit. So here you can see that this is just a Submit button. We're the name which is equal to hedge, right? Ed, and two card. Okay? You can see that. Now after this, you can see that here I am. Write this tile here and it is tied here is I'm just setting the margin. And the margin here is, you can see that the margin and the margin top here is five pixels right here. Now from this you can see, so here I disclose as tag. And after this I have derived it. This is just a class. And the class here is btn. And the btn, we're, I just said the btn class name here IT success. So class which is equal to BGN and BTN. Class name here is success right here. Nor for this you can see here I just said the value, and the value here is add card. Okay? And then I just closed the score right here. Now, after this you can see that I have derived. Let suppose this is a PHP tag and I just close the two statements right here. Okay? I just copy this. And then here you can see that as just closest to statement right here. Now here you can see I'm just giving the final tightrope it, touch it. So here you can see this is just a style. And the style here is I have to write this as a clear and a clear, which is both the side. Okay? Now here I just closed the score. Okay, so this is mood decide right here. Now, offer this, I hope Ryan, this is H2 tag here. And the H2 tag here is order details. And here I have to add some beer tags as well. After this detail, I have to run this DIE tag, which is the class. And the class here is, I would write that this is a table and the table is responsible. And I just close tag right here. Now here I just said that table, we are the class here is table. And then here I have combined them. This is table and the table here is bordered closest chord, no hair. I have derived this tier tag. And inside this TR type means at this table, Lord, Hangout. How could you find one? I'll the table heading tag right here. I just said the word here, which is equal to I0. Certain events here is 30. And here the where this 30%. And Firstly I have derived this item name. Okay? Now here you can see, then I have to write that this is just quantity. This is quantity. Then here. After this I can write that this is Prize right here, where I just said the price here is 20% red. Then you can see that here I have derived that Torkel price. Okay? And endless ride, that action, that actions you want to perform. This is just a text right here, okay? Now here you can see that I have to write the PHP tag right here, and PHP tag here. As you can see that if, if here is not empty, so this is not empty right here. So I have to write that this is just session right here. So I'm just running this session right here where I have to write that. This is shopping cart. And now here you can see that I have to write down this, the variable total and the total which is equal to 0. Which means that the shopping cart at the beginning, which is starting from the 0 right here. Now here I have write that this is the for each loop. And for each loop here is firstly ICU garden, this is session right here. And the fashion here is, I have derived that this, this shopping cart right here. Okay? So shopping cart as the valuable keys. So we already work on this example as well. So you have to simply repeat that example. You can see that offer this key, I have to set the values as you know. So here I just said the variable venues. Okay? Now here you can see that I have food and this is taken right here. And then here I have two closest PHP tag right here. Okay? Now here you can see that I have right, one of the table tag here. And inside this table rule, I have to say that a table or data. Where I just said this PHP tag and the PHP tag, we'll print the values. You can see, and the value is here is firstly, I have read that this is item name. Okay? And then I just closest tag right here. And close this tag right here as well. Okay? Here you can see firstly, I have to write this table record tag. Then this is a PHP tag here is print the ego and the ego here is getting the values right here. And the value is here is item name and then closes values right here. Now here I am just replacing this Linda item quantity. Then here you can see this is item price. And now you can see that here I have derived this icon. And now here I have to get number underscore for me. Okay? Now here inside that I have to set the values. And the values here is, here. I'm just getting the item quantity right here, okay? Now this item quantity multiply by the values right here. And we're, I just said the venues here is item price. Okay? And then here I have closes tag right here. We're right, this two right here, then close this tag and then closes PHP tag right here. Okay, now here after this, I helped write this as a table data. And the data here is i OK, right that a HREF. And here I will get the index.html means of getting these values or after getting these. So we have to go to the index.html, PHP where I could write that this is action and the action is delete and neat here is ID, VCE is equal to here. I have read that this is just a PHP tag here where I just said that equal. And the equal will get the values right here. And the values here is, I'll write it this as item ID, closest tag. And then here I have write that this is closest stand right here. Okay? And you can see now here, offered this. You can see that I helped BU, so this is double quotations mark right here and here you can see that after this, I have to guide that. This is just the span tag, okay? And is Penn tag here is I have to write this as removes. Ok. Now here I have to add that this is just a class right here. So here you can see that I just remove this. And this is a class. And the class here is equal to a hat, right? And this is just a text. And the text here is, I had read that text is the danger right here. Now after this here you can see that I have to write that. This is a PHP tag. And the PHP tag here is frosty. I have write that this is getting the value total, which is equal to head I2, right? This is total plus variable values. Okay? Now here you can see that I have derived that this is item and item here is quantity. Okay? Now I just write that this is the variable values. And the values here is I will get the item prizes. Now, just close the score. And you can see that I just closed the score right here. Now, after this, I have to close as PHP tag as well. And then here you can see that I have to write that here Tang and here tag inside this table row tag, I have to define one of the table data where you can see that I just defined. This is the column span and the color Spanish is equal to three. And then after this, you can see here I have read this as a text alignment. And the text alignment here is the right side. Okay? And then here you can see that this is just a total nor table data where I have to align the text and the alignment Here is a pool right side. And then after this here you can see that I have to write that. This is just dollar sign because these things are in dollar means the price of that. And then here you can see that this is number underscore format. Again here you can see that this is just total number, realize defined total with two and then closest code right here. Okay? Now here you can see that this is closing the table data right here. And then here this is the TR Tang. And you can see that I have to write this PHP tag and closest entire code right here. Hopefully you understand now that how we can work with this shopping cart functionality for the backend and the fart en of the shopping cart is completed right here. So in next lecture, we will make our database to that as well, n, after this, after the creation of the database, we had to run and explain our entire functionality of that chord. So you understand. So if you not understand any of the pint at any time, please let me know and thanks for watching this lecture.
100. 110aCreate Database and Explaining of Work: Hey guys, welcome to this lecture. In this lecture, we are going to talking about that, how you can create your database, commit our shopping cart. Firstly, I'm creating the database. And then after this, I am explaining this court for you. And then I run this code. Here. You can see that there's do's tab that you can create your database. First one is you have nuclear database, localhost and PHP, my admin. And then simply go to the key of SQL right here. Okay? You can know, you know that here we already cleared the shopping database. But another thing right here, which is you have to create the database file here. Let suppose I have two right there. This is Shopping dot v. So here you can see that I have to be at this database file into this project. And I'm just linking this. And then here I will copy all of these strings. And then I will run this Q is in a hearing, S-Q-L. Okay? So this is running SQL right here, so we don't need it. Here. You can see if you want to run the query right here in SQL light studio or any MySQL studio. So this is up to you or you can run your query right here in SQL. This is up to you. You can run anytime, anywhere. Again. Now here you can see that facility I have write that this is just right here. And now here. Understanding the security right here, which is like shopping dot PHP should simply I dare stage. I'm just running this PHP command right here and now here I am just running the key for you for your understanding now. Okay, now here you can see that firstly I write set. Set here is SQL underscore MOOC, okay? Which means that this is just a SQL mode. What am I creating here? Which is equal to, I'll just write that this is no underscore. Underscore, and value will be no non-zero, okay? Means that no value will be centered on 0 right here, okay? And this is in double quotations model. Now, after this you can see here I will close this chord. And then here I just write this is set and set here is R2. And R2 is equal to 0. So you know, that's why we command this command for your venue, just changing something, then you have to commit your commodity Hazlett. Now here I have write that this is tarred and is taught here is transaction. So this is, you can see that this transaction right here. And then after this, if you want to write some of you or if you wanted to serve some of the times onto it, simply you have read that set time. So this is, you can see here said time and then here you have red zone. Here you have right there, this is plus 0000000 right here. And then I disclose the score. So you can see here, I just copied and pasted right here into the shopping. So you can see that. Okay, now after this, you can see here, I will write that suppose that there is like offer this here you can see that I have to write create and create. Table here is I have to write that this is table underscore product. Because when you are just to searching something from or selecting some tasks, something from the shopping cart. So there will be upper or like right here. Okay, so here I'm just creating our table of the product right here. As you know, that we are creating the table here. So table representations here in the parenthesis, and then you have glows with us in the colon. Then here you have to see that I help write the name here is id, which is the integer type and integer type here is let suppose this is a lemma and this is 20, or this is any numbers. You have to search it, you are on, then here you are. You can see that I have derived indices, none. Which means that when you just taking the integer and the not null. So this means that this field cannot be blank right here, OK. Now after this here you can see that I have arrived at this is name, and the name here is var char. Char is a corrector high, right here and here I'll just write words. Horace, who double five. You can set varchar as a 100 watch, has a 40 watts are As, as well. So this is a pretty, you know, I just said that this is also not null right here. Now offer this here. You can see that I helped write that this is image. Image here is I have to write and this is var char. And the var char here is, I have arrived at this is to W5 means that you have to add to level five characters right here, which is not null, okay? Which is a image as well. So image here is when you just see the image on the shopping cart. Now after that here you can see that I have the right price and the price here is varchar as well. And this is the price here is, sorry, I'm just taking the price here is why I am just taking double. Because if you are creating the bar charts, will that will always be maybe this an integer who I had just taking the W right here double is like you can write, pricier is $1.1656100, or you can write that 56.99. So this is up through that stage when you are just taking the floor number. So double is like a typos Lord, taking the floored quiets number. Okay, now here you can see that I have read this as node. And the node here is, okay. Now after this you can see that I have to close this code right here. Now. Here you can see that I have to write that engine. And the engine here is equal to I have write that engine here is like which as you can see there, my I S. Okay, this means that when you are just working with SQL 8, and if you normally lake excess the engine right here. So this is just a My IS a storage engine because of Ayana dB. So this is by default engine to you have to select that. Now after this here you can see that I have to write that. This is default, okay? And the deep part here is I'm asserting the corrector strategy is equal to, which is Latin one. Okay? I just copy this and paste right here. So here this is transaction. So this is, you can see that this is just a transaction right here. And after this, you can see that under database sign, right? Okay. And you can see that. So I'll just copy and pasted for that. As you can see your coordinates, four MHz for Prize, for price right here. You can see it's fine now. Now, after this, you can see here I will add, insert Gu command as well. So this is goo, goo command as well. You can see that after this I will add, the insert will come out as a very, you can see that here. I have great. This is insert and insert into. So here you can see the insert into the table underscore product. So you can see here I'm disputing the table underscore product right here where I just said the values right here plus d, this is the IID. Then here I have write that this is name right here. Then after this you can see here I have arrived at this image right here. And after this, you can see here, after this image I have arrived at this price. Okay? Now here you can see that either set the values. So the values here are, you can see that firstly, I have to define the values right here where you can see that mostly the integer or maybe you can see that this is the ID type here is either starting from three right here you can see that y n is restarting from seeds because of if, in any case the ID number one or two is taking, so that will give me the error. So that's why I just Award the ADA right here we are. You can see that at the first day, I'm just setting the, let suppose this is my product name right here where I just said that this is let suppose men shoes, okay? Then here let suppose I didn't have any image in the database here so far, and I just didn't save any of the image inside this image folder. If you wanted to save any of the image right into this folder right here. So you just, you just simply have to save this image into the folder and then give it the name of that image right here. So I didn't have any of the AMI right here. So let's suppose I have write that XYZ dot jpg. Okay? And then here, you can see that at their seeds, you can see here I didn't have any image. Okay, so there is no image admissions to me at the running of the program. You can see that after this I'm inserting the price of that here is that the price of hair Manchus here is, I'll write 200.65. So this is the $200.65 price right here, okay? Now after this you can see here I have to write that this is the ID number for IT area. I just write that this is a man. Sure. Okay, so our Manchu right here, same epidemic using right here, which is the price of limit 199.65 right here. And then here I have to write that this is a woman. And here I have to write this as women shoes. Okay. So only for that. And as a woman shoes right here where the price of woman she was here is let suppose 399. Okay? So you can add more values as well. So far. Here you can see after this, I have to close this command. So you can see here this is just a answer to command. We already work with it. And here I just paste this in circle command right here. You can see that, okay? Now after that you can also alter you are Kumar as well. So you can see that. So here you can see there I have arrived at this is why we use art. Her alter table statement is used to add, delete, or modify an existing table. And even with that, okay, now here you can see that I have read that. This is our 8A table, which is a name of table underscore product. Ok, and here you can see that I have right there, this is Add and add here is primary key. So you can see here at that stage, I didn't add this as the primary key. And if you want to add this as a primary key right here, simply, you have to write your art her table to our topic right here. As you can see that you just simply change you are or.edu or modify your database. You're using polyhedra, right? Arther table and then Table product and add the primary key to that. What is a primary key right here? The primary key here is, it helps you understand now. So this is ID as the primary key. And you can see that knowing here you can see that if you want to write our 8A table and if you want to set the table ID as an auto-increment as well. So you have to simply write that. Also are tell sorry, artery. And the artery here is the table. And you can see here we have arrived at this table underscore product. And then here you just simply write that modify. And the mortify here is I have arrived at the mortify. Hair is IID. Okay, you can see here, I'm just modifying the ID, which is an integer type of a Lemma. You can see that I just take this integer type enamored right here. And now here I'm writing that this is not null and this is also auto increment. Okay? And then here you can see that I have to write an article increment which is equal to Ys, right? That this is 80 right here. Okay? And after this, you can see that I have to set one of the commit command, commit all of the database changes right here, copy this, and paste it right here. You can see that. So you understand now that how we can create the database and link each file of the database right here when it is, click on Go right here. So you can see here you have an error right here. Check the manual corresponding of you or maybe we are. The corrector set here is Latin Monte here you can see that I have to write that this is Latin, and the Latin here is one right here. You can see that this is just correct offset and the corrector threatening is equal to the Latin long. Firstly, you can see here, I'm just not insert, we use enzymes to Kumar. And at that stage I'm simply running this command right here. So you can see here. We have an error here, which is this. And here is the character set. So you can see here we have an editor and default and my Keyczar computer right here. Now after this I am just running these insert Luca Martin and the article commands right here. Okay? And you can see here this is just ComEd kumar. Ok. You can see that now I am just insert bookmark. Then after this I am using Arthur command right here is the duplicate key ID. And they're just check if it is duplicated. Okay, now here you can see that I'm just running this and leaving this. After this here. I'm just taking the index right here. Okay, it's fine. Now here, understanding the score again. And close this and run this right now. So we have an arrow right here, which is you can see her duplicate entry of four for the primary key. And there, just check the duplicate entry of four right here. Okay, it's fine. So here we haven't duplicated entry. And you can see that I just copy this code. I'm just changing this just because of primary key, Always be unique right here. And you can see that I have to write that this is all. I have to go do shopping. Then table or hair. I have run this update command. So you can see here in this corner, and I run this database where you can see that I have, right it update set id value, which is three. And then here you can see that I have right there the name and the name is the name. We are the name here is men. Sure. Okay. And then I score right here. So you can see here an uncommon column here. There's a check which is number four and the Manchu right here. So this is all happening right here. Okay, the name here, you can see here. Just check again. No hair update command again right here you can see that update ID, which you can see that you can see that I have to set the VR class. We're prize here is equal to, so I'm just giving the price of that, which is like 399. Closest score. An underscore right now. And you can see here I was refreshing this. So this idea is complete. Now after this here you can see that I'm just adding the art her table right here. This is the order table. Go come on. You can see that that is running air and there will be the indexing right here where you can set the ID here in the primary key. You can see here I'm just using our turntable right area. I just add the primary key. And after this, you can see here I'm setting the R2 increment as well. So this is here. You can see that this is an auto-increment shopping table right here. You can see that. And after entering, so you have to see that this databases or database key is also added right here. And I just refresh this. See you will find that. And this is setting on the R2 increment as well. So the index thing to indexing here is the auto increment. Then here you can see the default value not null, and this is the primary key. Now it's time to explaining my course to you guys. Now here you can see that I'm just coming back to that. See this cord. Click the files. And here you can see the shopping. Okay? Sorry, this is shopping Dorothy indexer, PHP. Okay, now here you can see that I'm just running the score L. So after adding the score, you will find the output like this. Let us come to the core. Firstly, you can see that this is just a connection of the database. And here this is the air chart, c'mon. Now here, this is a local host file. You can see that. And then after this here you can see that that will connect to the new tab is username and the database password. Then this is the database name right here, which is a shopping. Now here you can see that if the shopping cart session is a start here, so simply get the item Eddie. Eddie columns near the shopping cart and the ID numbers. Ok. Here. You can see that. So firstly, Focused on that here. So here you can see that that is show me the item ID, item named price and quantity. Okay, here just see this is item name, item, price, item quantity, where item ID here is this one. Okay? You can see that, which is 123. You can see here as well. You see a shopping and table. So this is item ID right here, okay? You can see that now here, this is the quantity of the item right here when you just click on Add to Cart. So here you can see that the order detail here is added into the cart right here. Now, you can see here the count is taught working right here. So here you can see that this is just a column which is quality one and this is the coding right here, okay, now after this you can see, I just come back to that. So as here you can see that this code is starting from 0 at the beginning stage. You can see that when I just click on that card again, so item is already added. This option or this alert message is shown to me with the help of this alert here. Hopefully you understand now that how we can work with it. So after getting these ideas when I just emptying this card, so you can see here I'm just writing this action which is equal to delete action right here. And here you can see that that will restart the shopping cart session. Alert the messy that item removed, and then restart as in the dot PHP. They're just see here you can see. Okay, click on remove. You can see that item, remove rephrased apiece and go back to the index door, PHP right here and the carding is empty, right here. You can see that this statement is run at that stage. Now here you can see that this is just a designing of the bootstrap. I is already tell you that G QD bootstrap file right here. And after this you can see here I have arrived at shopping cart. So this is your shopping cart as a tax. After this, you can see here this is a select two commands. So select group command here is running at that stage. You can see that this is just a selecting items from the database we are that will select the Manchus right here than man and the woman shirt, woman shoes, as well as the price of debts. This will end up here. You can see that there is no image right here, because I just told you that there is no name of MS saved in these. According to highlight here is amazing images. So I just tell you at that stage, you didn't find an exam is right here. Okay? So this QD is running at that stage. Now offer this here you can see that I have right DIV column, the column here in the post action. And the action is a light green and background here is very small. And you can see that there's, okay. Now here you can see that the score, so here you can see the background-color is y, and this is why smoke right here. And these all are unable, cured is right here. Now, this is heir to the cortex and this is a Submit button. So you can see that this is submitButton heir to the car, and this bottom hair is green right here. Okay? Now after this you can see here this is the order details. Starting from that we are the vertices 501030155, largest. See, this is order detail 501030155 right here. And I just click on that. So you can see here firstly, that will show me right here, which is the item name, item quality, price, total, and action right here. Firstly, we will check that item name, quantity, price total N action right here. And after this, this database queries are restarting criteria is directing the values item name, then quantity, value, item price, value right here, then number format right here, value item quantity, which is two, you can see here, and then item as us and desist remove right here, okay, which is item ID there, just see itemName, quantity, then prize, portal and remove right here. So these statements aren't working properly at that state. Now here, you can see that the total plus values right here, this statement is executed right here and now here you can see that that is running total. And the total values are here. You can see that 200, you can see her car. So that will calculate these values and show me the total right here with the help of this statement right here. So this is just a total and that format is running right here. So this is just functionality of the shopping cart we create here in this lecture. If you find any problem regarding to this lecture, please let me know and thanks for watching this lecture.
101. Configure Database: Hey guys, welcome to this lecture. In this lecture we are going to start working with one of the, another project, which is the rating systems in the PHP. We are going to create one of these ratings system where you can give one star, two star, three star, or four-star rating systems. Let us see how we can do it. Firstly, I'm just creating a database configure file right here. So for that purpose here you can see that I have read that PHP file and then closes PHP file right here. After this, you can see here first you have to write this as the host information. We're died at. This is just local host. Okay? This is our host name. Now offer that here demonstrating a user and the user of the database. Here is the root. And now here I have read that this is the password and password is Is equal to her eyes, right? That the password I didn't have any of the password on the database. That is why I am just leaving this field has black. Now after this heritage site, this is our database name here, which is equal to her eyes, right? The database name here is I just keep this database name, so I will add right here. So you just see that after this, I am just taking their Suppose this is a connection right here, or let suppose I am writing this is a variable SQL which is equal to Harris, right? That does it. Mies SQL and MySQL underscore Harry's right connection. Okay? This is just a connection of the database right here. But I will get the host variable. Then I regard the user as a variable. Then here I will get the password as a variable. And then here I will get the database name. Okay? Now I just close this database name right here. After this here you can see that I have right, if an if here is I have it right there. And then here, I will get this equal light here, which is my variable. And if this is not connected to the database, so here, simply that will make an error right here where you can see that this is just a connection and the connection here is failure. Okay? And then here you can see that I have to concatenate my SQL and MySQL underscore Eric read connect underscore error. And then I just close this code right here. So this is just a connection where I'm just creating with this routing system helps you understand now, if you find any of the problem regarding lecture, please let me know and thanks for watching this lecture.
102. Download Plugins: Hey guys, welcome to this lecture. In this lecture we are going to talking about that, how you can download some of the plug-ins with operating system. I'm creating this routing system with our GQ framework for that purpose. Here this is a link of that, which is github.com slash this link. And then here you can see that this is just GQ five, which is 3 works. Okay? Here, ventures go to discourse to simply, if you want to copy or if you want to download this file right here, simply download these files. And this is also a file right here. We can see this has got a clone of that plugin right here to simply add this plugin into this rating system project right here. Okay? This is very simple. Hopefully you understand that how you can download it, simply download the zip file up that. And if you want to copy and paste this file, so simple, you have to write, copy this all file, create. New file right here with the name of let suppose this is jQuery or G2D, which is 31010. And then here I just save this for the JavaScript. So jQuery is a library of JavaScript right here. You have to simply copy and paste this file, include that link, okay, now here you can see I just select that and then copy. And you can see here, I will paste that right here. Okay. So you have to do simply that, offer this. You have to go gu, the plug-in of the GitHub right here, simply download that file. And simply you have your file into the editing system right here. I'll play you understand now, if you've might enter the problem regarding to this lecture, please let me know and thanks for watching this lecture.
103. Create Back-end Rating Functionalities: Hey guys, welcome to this lecture. And in this lecture we are going to connect our distributing system when I just run the PHP commands and the PHP and SQL queries right here with our database, you can see here I have to write this PHP code right here. And after this, you can see here I have to go to PHP, my admin. Inside this PHP my admin, I have to create a database with the name of the rating. Okay? Now here you can see that I just included at first, which is the file config dot PHP right here. And I just close this file right here. Okay, now here you can see that this is connectivity with a config file right here. Now after this you can see here I have to create a user. So user id which is equal to i edges, right cruiser ideas, one right here. Okay? So I just said the user ID. Then here you can see that I am inserting the post id, which is equal to here is that this is underscore. I'm just setting the post method right here. And after this, and I am passing the parameter of that here is post ID. And his closest chord right here. Now here you can see that I1 is defining the rating as a variable. And then here the rating here is also a post method where I just said the rating. Okay? And here I will close this score right here. Now here you can see I just created three variables right here with a user ID, user ID and the rating as well. Now here I am just opening the select command here and we'll create the selection of orbits. Some of the database is right here, okay, now here you can see that I have arrived at is just al-Qaeda. It I realized just select the curious form, the database where you can see that I have to write them. This is selection. Selection called is Tarik OR commentaries. I just, I just tearing their eyesight as as posed here. Or you can see here, see paused means a customer coast right here, where the post is for all p underscore rating. Okay? And this is root interact here. And I just started this p as a small p because you're wired eta and her eyes, right? This is rare. And here I tried getting the bulls eye right here, which is equal to, I have to write that this is dark. And then here I will get ID right here. And we're, I just, you can see that I just can't continue that. And after this here you can see that n Here I have read and this is the user ID. So you can see here firstly here I will get the post id, and then here I will get the user ID right here, which is equal to, I helped write that, that is getting the user and the user id here. Now you can see that when I just run this chord. So you will find the better understanding of it. But here just make a concept. Here. I just select the record from the column as seen from the rating right here, where it will show me that a card of host ID that who is posting and what is the user or who is the user who is posting the rating right here. Okay? Then after this here you can see that I have over there, right? That is a reserve which is equal to MySQL underscore here, I stand in the queue right here. Firstly, I have to write that this is a SQL where you can see that I'm just getting the Kumar of SQL right here. This is a database connectivity. And then after that here you can see that I have to, then this q right here, we can see that this is the, this is just a variable of that. Now after this, you can see here, or here you can see I have grouped closest score. And now here you can see that I have to write that this is variable. And now I'm just creating a new editable right here where you can see that this variable is for fat and fetch the data or effect the candidate here. For fetching the data. You have read MySQL I underscore Q0 and the QT here is I will get the result right here. Okay, you can see that. So simply I will fetch the data from the result. We're, this configure SQL connection is running and the key of that, select commodities running right here. Hopefully you understand now. Now here I'm just creating one another variable which is account. And the account here is I have to write that this is simply the Planck data where I have read that. This is just coast right here. You can see that. Okay? And I will close this code right here. Now here you consider after this if statement that if current, which is equal equal to 0, which means that in our works, which means that the current is equal to 0. So simple, you have right there, insert QD right here, which is my variable and variable which is equal to here. You can see that I have right? And this is insert. And here you can see that insert and do underscore rating. And here you can see that right there. This is us ID, and then this is host ID and a rating as well. Here. These are the post id rating, host id, rating ID. And the rating here is, you may say that this is just an attribute of the database tables right here, where I just define the values. So the values here are, you can see that how to write the dot, dot, dot here is the user ID fast. I will get the user ID first, which is you can see that I'm just can continue doing this. And after this, you can see here, I have to write that this is getting the post ID right here. And here you can see that I am just writing this again. We are, you can see I have arrived there. This is just getting the rating of that piece right here. Okay? And this is the comma right here. You can see here I'm just defining the values where the user ID, you can see that cost the user ID of her. This, you can see here this is the post id died here. And after this post ID, so this is also our door sign here. And after this, you can see here I'm just getting better rating as well. And then here I will close this code right here. Okay, you can see that I'm just entirely closing this call right here and do the whole disk co-writer. Okay. You can see that I'm just running in CSER to command right here. Now here after this I am starting MySQL SQL. I underscore, I'm just running the key right here where I just run frosty, I'm just creating the connection to the database. We already considered this SQL connection. And after this here you can see that I'm just running the insert here. Okay? This is my variable here. And the closest chord right here. Now here you can see that this is Alice. And the L's here is firstly, I have Bu, right? That if the user will add the database to this key will run and some of the time the user will also update your ratings as well. So for that purpose, we are going to run our command update Akkad as well. Okay, now here you can see that I'm just copy this history right here. Okay. And here you can see that for the pleas for insert, I have arrived at this is update command as well, where I just update this q2 right here, okay? Here you can see that I have to write update. And update. Here is the grating here. And here you can see that after this, I helped write the set and set the rating, which is equal to, you can see that because user will only set the rating means that after judging the means, if the user with a simple common example, if the user will give you the five-star right here, okay? Or if the user is by mistaken and give it our two-star hair. And if he wanted to update that rating to simply this, Judy will run at that time. Okay. So here I will run that KD right here. And we're children like her after this post rating, you can see here, I'm just setting that costly. And right here, which is like I'm just removing this N. Now here you can see that firstly, you can see here I will write creating VR, that we'll get the variable rating right here, okay, and then here I started door sign. There. You can see that I have it right there. This is the user ID which is equal to Harris right there. This is just a user ID, okay? And then I just close this code right here. And here you can see that I have to write and sign and n here is, you can see that I have to write that this is just a post ID. And the post id which is equal to Harris, right? That, that is just host and the host ID right here. Okay? And I just close a score right here. You can see that. So firstly, how to update k right here, where I just run the update command. Update p means that update the rating from the ratings table via you can set the rating right here because we are good. We are setting the rating of update right here. First TV, how to write dot sine wave creation side right here. This is a variable. Then here you can see that the we're Kumar. Via the user ID means that, that will firstly check the user, that only rich user or home user want to update his rating right here. And after this, this is getting the user ID right here. And then you can see that and post ID. And that means that who is updating the rating and what caused he wanted to, or what reading he want to update right here. So that's lambs writing the post id that I'd hope. So you understand now this concept writer and after this you can see here simply getting the database connection that run the SQL query. And after this here you can see that that will get the database as well. Okay? You can see that I have to run the key idea here that we'll get the select command and select hair is wrong. I will tell you about that around y. I'm just taking the round right here. Here you can see that at that stage, I am just taking the average of that routing right here, y, I'm just taking the average operating here. Let's suppose five users are caused our rating five-star, okay? And for users are posting four-star rating, three users are posting, starting or tool users are posting once taught. So I will take like 5491112131415 user's average and show the entirely average to the audience. For that purpose, I'm just taking the average of the rating right here. So average here is I just take average. Then here I'm just taking the rating right here. So rating starting from one, and then here I just write as average. And average here is rating right here. Okay? So this is rating right here, okay? Now here you can see that I have the right rating from p underscore rating right here. And then here I just write, this is something we are Kumar. So we're post ID, which is equal to here I have right there, this is just a host and a post ID right here. Okay, you can see that. So here I'm just turning the select command, select from average rating, and then I will get one as the average rating. And then that will get from rating via the post id. Here. This will not getting the post user ID right here. That when getting the post IDs, mix up that and take the average of it all. Now here you can see there and after this, I just getting the result. And the result here is MySQL underscore. Here. I just get the SQL connection right here. And after this, I will get, I will running the q here. Or if this chord is not working to simply died a connection made, I just write MySQL underscore and a right here. Okay? And then here I have 2p closest chord. Now here I slide, this is just average rating. You can see that this is the average rating right here. So I'm just using this as the variable right here, which is storing our data. And we just write that. This is just a fad and this is the fetch data right here. Sorry, this is here. You can see that getting the variable which is fed average right here, okay? So FH is equal to hedges, Right? This is MySQL underscore here I'm just fetching the data of that fetch adding. And here I'm just running this as. So here, this will get the variable FET, average IT. Okay? Now here you can see that the average rating, right? Okay, and then I just close this chord right here. So you understand now, now after this, you can see that I have arrived at this rating is fed. Here, OK, it's final. Now here you can see that I have to write that this is just our return statement. And the return here is I have to write that this will return an edit I had where I just create an eddy. And now here you can see that I have a right that this is average. Average here is equal to, I have to write that this is getting the average rating is the variable right here. Okay? And after this, you can see here I have to write this is equal. And the equal here is, I'm just running the Ajax Kumar We Are. You can see that I have read JSON, underscore Harris write in code. So when you are just encoding that to simply eaten, the Jason command right here is just another programming language. So I am just simply giving that one Kumar right here. You can see that this is returned. Okay? Naught means this is not a reason, okay, so simply here you can see that this is any turnout and we'll close it up. Semicolon. Hopefully you understand now that how we can get these types of functionalities in PHP programming language. If you find any problem regarding to this lecture, please let me know and thanks for watching this lecture.
104. Create Rating system and Landing Functionalities: Hey guys, welcome to this lecture. In this lecture we are going to talking involved the front end section of the rating system where we can design the landing page and work with some of the JavaScript JQuery and observe some of the links as well and create a learning page, functional design. Firstly, you can see that I'm just creating the include tag and include Pang areas. So for that firstly, I have to write PHP and then closest PHP tag right here. And here. I had right there, this is include. And include here is config. So c is a capital right here, config dot PHP. Ok? And this is config dot PHP right here. So you can see here my config file excluded right here. Here you can see that I just creating some of the links and the script tags right here. Why I just add these fastly, You can see that this is a link of this tile sheet right here where we can agree at this tile sheet in our CSS file. Then here, often as you can see that this is just our bootstrap running and we already work with it. So you can see here this is just Maximian link. You can import that link right here. This is the link of jQuery file. Right here we go. I just told you that non-literate from the git hub right here. And then here, this is the GQ 2.0.0 Dart JavaScript file right here, but we created right here. You can see there. Ok. And you can see this is security bar Master, so this is a link of that right here. And this is 1010 dot JavaScripts, or this is the link of that. Now here you can see that I'm just creating or I'm just working with a PHP file. Now, here you can see that I have write PHP and then close with PHP tag right here. Now here you can see that this is a user id is equal to one. So I just take user id from back to my core right here. Okay? You can see that I have right there, this is like Curie and which is equal to Harris rider does get the select command to select from, sorry for that. Select is tearing from host. Okay, so let's just see what is the name of that here. So yes, okay, it's fine. So this is select static forum posts, and then it's closest score right here. Okay? Now here you can see that I have provided that this is a result. And the result here is equal to I have, right? This is my SQL I. And underscore here, I'm just writing this is fetch the ad right here. And inside the fetch add a I am just getting, or I am setting the result right here. Now here, you can see that this is a while loop. And while you can see that rho and rho which is equal to Harris, right? Mysql underscore here you can see that I have right? This is a PHET, Eddie. And if this is fetching the area of sleazy right here. So you can see that here, that we'll get the post ID right here. You can see that that will get the post id is equal to row and the row here, we'll get the ID right here. Okay? Then after this, you can see that I'm just creating another link. Here. I just got the post title. Then here I'm just getting the post content and add the last aggregating the post link as well. If you want to give the links to symbolic link, otherwise, remove it from here. Okay? Now here you can see that I'm striking this is the post title right here, then caused content right here. And this is a post link right here. Okay? Or if you want to write that this is just our title cause or links with this is up to you just because these are just variables right here, or you can provide your own name right here. Now here you can see that I helped write QED and I'm running the security for many men, the user, or when your user is getting the rating right here. Now here it is, right, select, select from p underscore rating. Miss means that I'm selecting the post rating right here. They're both id, which is equal to here. You can see that I have the right. And then here I described host ID right here. We are. I'm just getting the variable right here. And after this here you can see that I read and, and, and sign here is the user ID and the user id, which is equal to Harris's writing that this is getting the user ID right here. And I just close this chord right here. Okay? Now here you can see that I have a great loser. Reserve is equal two eyes, right? Mysql lie. And this is running the MySQL I Q d right here. Okay, so this is running MySQL I underscore q2 right here. Again. This is not getting the QT and my intertial, I'm writing my arm. So kids find out. Now here you can see that plus T, I will get the SQL connection right here. And after this, I will get, and then I will get this tonight. Sorry this, I will get this cutie. Okay? Now here, I helped write if this connection is running simply than this QD or if disconnection is not transducing grid data connection. And and then this is Adelaide. Ok, and here you can see that I have enclosed this code right here. Now, after this, you can see that I'm executing this is fed and the fetch here is rating. We tried this in my SQL and SQL I underscore here you have to see a hug right patch. And the adding here is, I'm just getting, Sorry for that. And here you can see that I have read this fetch. Fetch here is Eddie. And adding here is I will get the user. Right here, which is my variable right here. We can see that that will get the result of that variable. Now here you can see that I have read the disease variable rating and rating, which is equal to hedges get fetched the rating variable and getting the rating inside this. Okay, now here you can see that this is a functionality for the user rating is computer right here. You can see that. Here. You can find the select key MySQL, fetch of a, and then relating right here. Now after this here you can see that I'm just TO copying this code and these two right here. Okay? Why this, because this cute is our seemed to get an average or show the average would be users. How? You can see that this is Select around an average rating, seemingly kids like the roared examples. And then here you can see that you have good idea. This is rating from the Peter thing right here is a table right hand the post id and everywhere the post id. Okay, now here you can see that inside this, I'm just changing that rate here we are. You can see that this is the average. And the average here is that OK. Here. That will, that will run SQL and the kidney dietary disconnection is dynamo simple generator right here where it is saved right here in this die. Unless you can see here I just getting this fetch EDI, we are digital guard them MySQL fetch array and that here, that when put in the reserves here, okay? And now after this debt is also getting like average rating, we are averaging is equal to fetch the array. And then here you can see that this is just editing right here. Now after this here you can see that ice, right? If an, if here you can see that I have derived this is and the average here is rating and the reading which is less than or equal to 0. So here you can see that I have to write that this is average rating is equal to, I helped write that no rating yet. Or lower or to editing geared all generated. Okay, so you can write any of the message. If the user is geared the rating and if you are post how any dating, simply this 2D or this average will be generated or rating which shows to you if any of you are rating is not shown. So you can see here, there is no rating yet. We'll be running at that stage. And then here you can see that I have Bu, closest score right? Now here you can see that I have to run the DIV tag. We had. I just cleared the partner and class here. Now here you can see that I hope right, this is edge corn tag. And inside this H1 tag I heard a HREF, which is link reference, right? Area inside this is a PHP and R1 equal and the equal, right? You can see that this is just the link right here. Okay, why I am just writing linked because then you're just speaking on that. So simply. That will go to the link. So I'm just creating a realtime word. You used to use the same poly. I just get this variable right here. Okay? Now here you can see that after this generating this link, I have to write that. This is closest score and closest PHP code right here. Okay? This is single conditions mark, and you can see that I just closed a score right here. Yes. Okay. It's time. Now after this here you can see that I have read that this is a class. And the class here is, it may say that this is a class link right here. And then here you can see that I helped write and this is the target. And the target here is, I have read this as target. Blank here. Okay? So this is up to you can write any of that thing right here. This is a target blank or target anything. And I scroll this code right here. Then after this here you can see that I have to run this PHP Kumar and the PSP Kumar, we'll pretend like title of the page or title of the post. And as closest chord right here. Why I didn't do this. You can see that if you have like a title which is x, y, many just clicking on the title. So behind this title there it is. There will be a link and that will go to this link. Clicking off that title right here. Hopefully you understand now that how we do it right here. And now after this, you can see here, I have blue light and offer this. No offer this. I am one of the great Harry. I started class and the class here is paused. And the post hair is text, which is shown in the text form. Okay. Now here you can see that I have to write the h2 tag where I just write equal. And the equal here is I am writing this is the current entering here via that regenerate and content of that page right here. Okay? Now here you can see that after this DIV tag, I just would write here one other DIE tag. We had. I helped write the IV. We are, this is a class all posts and the post Harry's action. Because as you can see that I'm just reading the title and content. And now here are some of the actions on it where I just show you that. Now you can see that this is a select. Select here is a class, and the class which is equal to I have to get rating right here. This is routing. And now here I just cried the ID and the ID which is equal to Harris, Right? This is the idea of creating an ID which is equal to, right? This idea of relating right here. Okay? Now here you can see that when I just write rating here, so I have to write this as a PHP tag. And you can see here this is a PHP tag realized right, equal and the post ID right here. And I'll just close this tag right here. Now after this, you can see that I have the right data where I have write ID and the ID which is equal to I could write that. And this is just our rating right here. Okay? And then here you can see they're avid gardener PHP tag. And then here you can see I have created equal and equal. Here is I just run host ID again. Okay, and then here I have group closest tag. And you can see that closes tag right here. Okay? And here you can see that I have closes and start a tag right here and then close this tag greater. Okay? Now, you can see that I'm just creating the Select button right here. This is a select command or select tag right here inside the select, I have to set one of the options down here where I describe the values and values starting from one. Ok. Here you can see I just create FIFA news right here. For one star, two star, three star, four star, five star. Same is the case like 12345. So jacqueline gendered and butter right here. Let's suppose that the value starting from 12345, like this one. You can select any of the dating from that and simply gave it right here. Hopefully you understand now, with the help of that rating, which is equal to the ID rating right here, and then PHP, host IRD. Then I'll just close this right here, then data ID right here. And after this you can see here I have to read the routing and routing here is PHP equal and the course id. And then here you can see that I have to close this code right here. Okay? So you can see that. And now after this, I will close this tag right here, which is the select tag. Now after this here you can see that I have who arrived one of the tag, which is the title tag right here, and that will clear the clear both sides. Okay? And then I just close this tag right here. And now here you can see that I'm executing one of the labels for average rating right here. So that will get the average 18 right here, which is the span tag ID and the ID which is equal to, I'll just write that this is just average right here. So which is getting the average rating right here. So average rating here is, you can see that this is just a variable we're creating right here. So PHP and then here is, is getting the equal, and the equal will be getting the variable host ID right here. Okay, and I just close this post ID right here. And after this, you can see here I will close this. You can see here, after closing of this here, I will get a PHP tag. Here. I just write equal and equal. We'll get. The average rating right here. So here is the variable of the average dating and really show me the average rating right here. And I just close this span tag right here. So this is just handling. Okay? Now here you can see that you are set. Rating is also completed right here. Now here you can see that I have to write a script. And this clip is the type. And the type here is, you can see that I have to guard this clip door descript slash JavaScript flat. Okay, now here you can see inside that I'm just running saturating script, which is the JavaScript file right here. Now here we are just starting completely a front end section works. Okay? Let's just see. No menu are just showing some of the information to the user, like equal in our print function. In JavaScript, you have write document on the place of equals and the print statement. Okay? Now here you can see that I have to write this is ready. So ready means that ready here is the function. Ok? And here you can see that this is just a function right here. Now here I have to write that this is like here, I'm just getting hedge and iterating right here. Okay, you can see here that we're getting this rating here, okay? Now, after this, you can see here I'm just running PHP core rises right equal and coherent is post ID and ice closest posts or, you know, offer this here you can see that I have a bright dot and dot here is bar. Bar rating is our rating symbol. Now, I just write set. And the set here is BHP VR is equal. And equal here is, again, I just close this rating right here and closest tag. Okay? Now here I will close this parenthesis. So here, this is the closing of that. Now after this, write PHP, and you can see that I scroll as PHP tag right here. So more work for the front end as the PHP is computer right here. Now let us show you some of the JavaScript functionality right here. When you are just writing your JavaScript or jQuery files. So here you will add in the header section. So I will write the JavaScript. So this is just for designing script which is the type of Einstein text slash JavaScript. So I'm just using the JavaScript file right here. And then after this you can see here I have Googlers is stripped, right? Okay. Now here you can see that I have to create one of these function right here. And this is the function, you can see here that this is mostly getting the rating. Rating right here. Ok. Now please write dot, dot here is written, so I'm just getting disbarred him here. Okay, so this is the marketing plan is getting this marketing here as well, okay? Now, here you can see that I heard right? I'm just running one of the teams right here. So teams here is equal to o. You can see here I'm getting the text from that is the Forum. And the Forum here is awesome. And the awesome's here. R is tars. Okay? So I just getting this toggle that this means that many artists select the dating from this box. So this tars, Do you like 123 or four? Okay. Now, after this you can see here I just started on select. So this is a mattered in the JavaScript which is selecting, I want to select, which is getting the rental cost. Then the Timgad, perplexed and decorator, that email as well. Know here I just keep anybody. Anybody here is y1. So I just run this command right here via this variable will with the element ID by the attributes. Okay, now here you can see that I have read a variable, variable underscore ID. And here you can see that which is equal to I have write E1 dot here. I just run a function is and we are, as I said, the data on the ID. So you can see here that we learn the ID. Now here, if statement and the if here is the type of. So you can see here I'm just defining this type of matter right here, where I just write the event, okay? If the event is not equal to undefined. So you can see here, this is not equal undefined right here. So what will you do? So you can see here. So why I just run this type of event which is equal to undefined. This is the rating which is selected by the user, which is 12 or three. Variable. Variable is split. The id is equal to y1 underscore ID note heads, right? This is just a split matter. Ok, and now here you can see that I have do a split with this. Okay? Now here I have correct variable. Variable here is of course ID and the ID which is equal to I have to write this is split ID and the spirit ID here is one. So that will is starting the IID from one, which is shown to you on the rating system and then put 3-4 and quite. Okay. Now here you can see that I have to write that dollar sign dot Ajax. So I am just running the index command right here, where you can see that I have read that a URL, URL hair is costly, that we'll get the URL rating dot PHP. Okay? And then here you can see that I disclose this PHP. Now here you can see that I have a right type. Type. Here is the post and discloses Coase type here. Now you can see that I have the right data. And the data here is host ID, which is dark post ID right here. And here you can see that I have boosted the rating. And rating here is the value. Okay? Now here you can see that I have right? This is our data type right here. And the data type here is a data type here is just some. Okay, why am striking just right here? So I tell you that when I just run this jazz and so here I am just unconquered that quarter and quarter that code right here, OK. Now after this, I'm just writing this is success. And the success here is the function or the function type here is the data right here. Now here I start variable and variable is average. And the average here is equal to average. This is our data. And the data here is, I will get the average rating here. So average, I will get this from the PHP code we're under serving one another. Raging right areas. This is and this iterating underscore post ID. Okay? And then here, this is just untaxed right here and the text here. Okay? And I just close this code right here. So you can see here as follows, a score right here as n here and here as you can see that. So firstly, I miss explained the score to you guys. You can see here this is I am excluding the function and then this is a rating function which insurance to you inside the bar. Ok, here I'm just setting the team right here. We're selecting the reading from 1234, so the start is shown to you. So you can see here this is on Select menu or the selecting one starts with the areas One structures to you 234. You can select any of the star from this numbers. So the start is shown to you. And after this you can see here this is type of events right here where I just write if statement for rating, which is selected by the user right here. Here you can see that this is just an Ajax request mirror. You can see that that will request to debt rating page as well then that integrates supposed. That will regret for dating as well. Right here helps you understand now and now here you can see that if you want to update some of degrading right here. So this variable averages that I'm in that stage helps you understand now, if you find any of the problem regarding to this lecture, please let me know and thanks for watching.
105. Some of Designing Overview: Hey guys, welcome to this lecture. In this lecture we are going to tiling or entire functionality with CSS, how we can do it legacy. Here in this lecture, I am just giving you a simple overview on this tiling because it's signing is Northern part of this project. And sorry, this course, just because in this course we are totally consist on the PHP, all the ok. But here I'm just doing the CSS ever for that purpose, venue are just linking something like here. You can see that if VL, something like front end of this project there, suppose this DIV. So then I just linking this to the styling section. So first of all, I just write door, right? Okay, then here you can see their eyes, right? Plus plus and plus, plus. Here is I have right? This is the content right here. So as a content here, so I'll just write the content of the acts in police, create a border of 0 pixel, okay? And 0 pixel here is create a solid, and the solid here is black. Ok, here you can see firstly, I just said field name that what I want do styling. So I just said that border. Then how much pixels, lake borders size. So I just write, use pixels, okay, and then this is solid and black. Okay? Now offer this here. You can see that I have right, that this is the border. And the border, I just get the radius of it. And the radius of it is three pixel. And the radius is just our size of the border. Now here you can set the padding. Padding is five pixel right here. Now, what is the margin of the border? So here I just write it as 0 pixel art hall, okay? Now here you can see that I have right there, this is the bed and what is the size of the border. So isis right there, this is 50%. Now, you can see here my content designing is computed right here. Now if you want to design your post to simply you have read 0, and then here I just take the post as the name. So what is the post right here? So I am just searching the post here. So you can see that this is our post IDs right here. And you can see, and this is a class_name. So I just take this class name as the post right here. And then here I just linking this to the CSS and offer this. You can see here I have to write that. The border and the border here is the bottom. And the bottom here is one pixel, solid. And the solid here is black ops. You understand or not, I'm just setting the border of the post as well. And now here you can see that this is just a padding right here. And the padding here is 1010 pixel right here. Okay? Now you can see that this is just a margin. And the margin of the top of the border eight here, sorry, four dead. And here this is the margin. And the margin here is the top means that what is the top side of the margin of your posts right here. So I'm just setting this as well. Okay, now here you can see that what is the margin of the bottom-right here? So this is the margin of the bottom. And the bottom margin is also R ten pixel right here. Managers looking into the core and when you're just watching the output of that. So you will be completely understandable that what are we exactly doing right here? Okay? Now here you can see that after this, I have to write dot sine again. And here you can see that I have already posted. So firstly, I have to get the posts right here and now here you can see that I'm just setting the heading of the Post who simply I just write H1 tag, which is for the heading tag right here. Okay? Now here, you can see that inside this, I have right there. This is just a font color. And the font here is I have write that this is wet. So if you want to take where there's a 13052, this is a useful, I just take the font. Weight here is the normal. So you can also write the formed as the size as size here is 30 pixel. You can see you also write you are heading color as well. So if you want to give it, simply just link to it. And now here you can see that I have read that post. And the post here is, I have arrived at this. So this is last and last is the child right here. So last slide here is I'm just getting the border and the border which is equal to 0. Okay? So I will tell you about the last time when I just run this program. Now here you can see that after this, I'm just writing Laker dot goes and the post head is e dot link. What is a dot link right here. You can see here this is the link and this is the anchor text. I'm just gave it this tiling to the link right here. You can see here plus v, I have derived this as a text decoration. Okay? And you can see here this is text decoration and aging and the textbook relation here is not. Okay. Now here you can see that I have derived this color and the color here is, you can see that this is the color black right here. Okay? Now I just said the color of the link as well. Now as you can see there, I'm just setting the post tax right here. Now firstly, the lateral spacing to the lateral spacing between the texts are one pixel if you weren't cross-eyed known or arccos, anybody write your pixel size right here. Now, you can see here this is a farm and the point here is size, so forth. Size here is 15 pixels right here. Here you can see that this is the form and the form family. So font-family here is you can see that if the sheriff if it, if it is areas of simply given the aerial setup and anything. Okay. Now here after this you can see here I just said the color of that here is, you may say that I'm writing that this is an equal. Ok? Now, the text and the text alignment here is USE Center in headache, justify left or right, so IS right there. This is a justified text when you are just working with MS. Word. So there was a control geoscience or justify or textual In that case, you can just declare your CSS. With the help of text alignment and justify right here. And now I just write that this is the cause. And the post here is I'm just taking the tag of the action right here. So the egg action, I'm asserting a designing to the edge. So margin here is the top of it. We are, you can see, or this is the 15 pixels right here and now here you can see that the marginal, the bottom right here, so the marginal border here is 15 picks slot. So okay. Now here you can see that offer this, I have to set the designing for, let's suppose a media as well. Here. You can see that this is a media. Why am is taking the median here? Because this is just for a media query. You died here, okay, now here you can see that this is the maximum and the maximum value here is equal to, I have writer, this is 800 pixels. Okay? Why I'm just taking 800 pixels right here, because when you are just zoom in. So that will not be like expanding or Norway changing your text right here. Now here you can see that I'm asserting this to the content. And the content here is the red. And the red here is 95 pixels right here. Why is there this content right here? Because I'm asserting the right of the page. Ok, and then inside that v, how this content right here, okay, so that's why I'm just simply write the current in here. Now. And here you can see that after this, I have to write that. This is for like men, like is mean when you're just giving the rating or something else. So for that is this will be running right here. So this is like and unlike designing right here, so like and unlike here is you may say there is also a linking of dot. So like here, you can see that this is a border and the border equal to 0. Then here, the background and the background here is none. None hair. Now. And this is a letter. And the letter spacing right here, which is the one pixel. Now the color here is I have derived there. This is, you may say that this is like non-Greek from dad. And here we have to write that this is the lawn green color right here. Okay. Now I think So you are a little bit confusing or dad, what I'm doing right here. So this is just as designing when we are just running our code. You will completely understandable that chord that we're designing the actually did write here, whereas the output of straight. So here you can see that I have right in this life. And the like here is also our tag right here. And this is also unlike or fewer rating right here. And here I'm just setting that on ours. When you are just mouse hover on something like this is our tag and you are just doing the most work. So here you will find a Hummer. So I just write that this is the cursor right here. So mouse cursor is, you can see that this is just a wing of the cursor right here. So this is, you can see, and this is for auditing. And here you can see that this is for the pen cursor by just clicking on religious, moving this to the court. So you can see this is just a pointer cursor right here. So here you can see that this is a cursor. So I just said that when you are just moving to the text or moving to the rating right here. So you are, cursor will be changing to the pointer, right? Okay? And here you can see that I have to remove this sign right here. Sorry for that. And yes, ok, now looks fine. Now here you can see that this is the Designing for these index dot PHP page when you are just reading your foreign Tantalus said simply that is designing at that stage. So here you can see that this is just a post action whose text. Then here you can see that this is a class operating as well. Okay? So you can see here this is a style and clear both the side. So v are exactly doing the designing classes name right here you can see that manages taking this right here. You can find this is a Coast Action tags, last-child heading number one, this is a post right here, and this is also a content right here. So you can see here we are actually designing for that front end Files. Here we are, what we are creating right here for the bootstraps. So this is very simple. When we are just executing this project and we are just taking the output of our project. So at that case, you will better understand of that outputs. Hopefully you understand now, if you not understand any of the plant right here, you can ask any question. Please let me know and thanks for watching this lecture.
106. Create Database: Hey guys, welcome to this lecture. In this lecture we are going to talk about the database to this project through time that we are creating the database now. So here you can see that I have read that create command and cleared the table. Ok. Create table if it is not exist, okay, which means that if the table is not exists, so simply cleared that if DIBL is exist, so ignore that query right here. Now here I just write a table name. Here is the table name, here is the post, because in the last few lectures, VR's using the table name as opposed to their scientists writing this as opposed right here. Now here you can see their facility. I have blue right, that get the ID right here. Now here, ID here is a integer type, okay? This is a integer type ID here. And interior correctors are 11. Layer. This integer attributes in this table is not null and that is our TO underscore. This is increment. Okay? So you can see here, I'm just setting the increment operator to that post, where if the user will add four, if the first user ID register. So that will allow us a one-eyed, then, then 2345 and so on. Now here you can see that I have to write that this is the title. And the title here is this is the varchar because the Python air the attribute name than VARCHAR is the character type char here, intimacy that isn't 30-50, 80 or a 100. Okay? Now here you can see that I have brightness is also not null, which means that you cannot leave this field blank right here. Now, I have write one other attribute which is the content right here. As you know that we are in last lectures, we are designing our content right here. So this is just a content. And if you look into your index page, so there will be, you can see that this is a post ID. And here you can see that let's suppose we're as a content, so I'm just searching for the content. So here you can see that this is a content right here, Okay, now here for this, you can see here we have the title as well. So you can see here, these are our titles. You can see title, id, content, and link. So I'm just creating these attributes into the database. So here you can see that this is text and text year is not null. So why am I just not taking this as the varchar integer? Because the content is a lot of texts would therefore I am is simply taking the tags that any characters will be added into it. Now here you can see that I am just writing link. And link here is, this is large and the large Haar here is 2W five. That link is no more than two double five characters. Now this is not an LED right here. Now I just said that this is primary and the primary key here is set it on. That integer ID right here, okay? Because you have to always take your ID is a primary key. Now here you can see that I n equal to I described I_1 o dB. So this is just a database type right here. And I have read that this is D. And the D part here is the character set and the corrector said is the Latin one, okay, which is equal to the Latin one, seemingly case like our old example. So I just take this as a primary key is ID because you can always take ID as a primary key because id is always be unique and the primary key will always take the primary key as unique right here. Now you can see here, go to the browser. So this is just a dummy text we will use later in this lecture. Here you could see that this is that SQL command. And now I'm just opening the rating right here. Now when it just opened this and click on the go. So you can see here our database table name with the post is skater ate him and I just click on that. You can see here we have the interior as the primary key, ID and title, which is Wars had a 100 text here is a content and then this is a varchar right here. So this is a Latin R1 and R2 and schema, which is IID, means that this is one plus one, then 234, and plus one, then three, then four plus three plus 14. So there will go up like this. Ok. Now, here, after this, you can see that I have caused some of the dating right here. Now here you can see that I just write insert into commodity. So insert into, so you can see here we have, let suppose this is the post rating, so Emmons ticking right here. What is the name of that? So you can see that I have to solve for that and I am just telling you that this is the cost. And the cost here is routing should be underscore editing right here, okay, now it's fine. Now you can see that I have read that. This is b underscore. I'm just checking the name of it. So this is t underscore rating right here, sorry, here, and just copy right here, which is b underscore rating. And then here you can see there in the P and I have to write that first DID, okay? And the ID here is I have write that this is just, you can see that it is just a name. Sorry, this is IRD. Then here you can see that this is a user id. And then here you can see that I have right there, this is host ID, right here. You can see here this is a course ID. And after this, I have arrived at this is rating. And then here you can see that I have defined the timestamp as that what time this course rating will be added to good. Now here you can see that I have read the values. And inside after this values, I have to define that. Sorry, here you can see that I have defined the values. And the values here. You can see there this is number one, okay? Now here you can see that this is the user ID as a three. Then here you can see that the post id as the one right here. And then here you can see that I have arrived at this. And the timestamp, sorry, this is awkwardness. You can see here is I am defining the rating as a three. Then here you can see that I have right there a timestamp right here. So the timestamp here is let suppose like this is 2020, okay? And then here we have the date. Here is your 604, okay? And you can also define the timestamp grid. So you consider this is 19. And the hair, you can see that I have heard lemma. So citizens, this is 10 to command right here. And here you can see there in Iraq, right? That this is a P rating right here, okay? To simply, I have to create this into it. But here you can see that I'm just changing the attributes right here. So you can see here I'm just copy and pasted right here. Then P dating. And now here you can see their first TV, how the ID right here, then we have the user ID. So this is the how the user ID. Then after this V sub o is the post id. Then we held like coding. Okay? So you can see that now air, this is an integer type L1, so this is also an integer type and Alum. Now here you can see that this is also an integer type Layland rating here is integer type two. This is integer and integer type tube just because you can not degrading as a pen right here. And this is up to five, so I am just writing this as an integer type 0 right here. Id is seems a case like that is auto-increment. Now here you can see that I have right there. This is the time, this temp right here, you can see that this is a timestamp as an attribute. Now, you can see that I have read and this is a time is ten and the timestamp here is not null. Which is, you can see here this is default. And the default here is that we'll get the current underscore time stamp right here, okay, and timestamp are here. You can see that I have to write this is update. And update here is, you can see that this is a current underscore. Time is temp right here, okay? And then here you can see that I said the primary key on the ID right here. Okay. Now here you can see the Firstly, I'm just copy and paste this into the rating right here. We can see that. And then click on go. So you can see here of another table is created right here. Now as you can see that if you want to add this Insert Bookmark, so at that stage you have to add this bar here. You can see that I have to write that this is insert, insert into. You can see that I have to write insert into post. So here you can see that this is a post right here. And offer this inserting the post-purchase, the I2 get the attribute right here really, I just said the IID. Then here you can see that I just said the title of the page. Then here you can see that after this Einstein, that this is the content of the page right here. And here I have a look at the link offered. Now after this, you can see here I have defined the values and the values here, you can see that this is. Dir to guard the ID right here, which is ID is one. Now here you can see that this is the title of the page. So that here you can see that this is the title of the rating. Okay? And you can see there, and I just close this rating right here. And here you can see that after this you can also get this dummy text right here. So if you want to give this Tommy texts, dummy text to it or to give it. Okay, you can see that for that purpose, I am opening this link of the dummy text right here. You can see that if you want to set the content of the page so you can see here the title. I just remove that, that please. You can see that the rating my lecture. Okay, you can see that I just defined that the rating my lecture. Then here you can see that after this I'm just linking it. You can see here I'm just defining the link to it. So I just gave it a simple linked to it. Okay, so you can see that. And here I am just giving a link to that page as closest page right here. Okay, hopefully you understand now that how we can do command right here. So after this you can see that closes court and here closed with a semicolon. No air. I'm just running this command into the database right here we are. You can see that inside this post SQL and then consider click on goals. So in CSER two in the post id title content. So here you can see that I helped write this as the content right here. C. And yes, okay, it's fine now. And unknown colon, please select the rating to my field. So here you can see that that will drive the id, title, content and the links. So it's fine now, but it's not taking right here ID, title and the content right here. And then here you can see that this is a link. And we did it latrines take right, Harry, I just said a single quotation mark right here where this is a double conditions market I am just using right here. And seems a case like closing of that tag as well. And here you can see that this is single quotation mark. We can now. Yes. Okay. Then close this. It's fine now. Now let us just see. I'm just, I'm just running it again. So you can see here it's taking the text right here. And they're text is humans to me, inside this you can see here I'm just successfully insert to our text right here or right here. Now here you can see that I just write in 0 to Kamar air there. So when I just open this and click on the rating, so you can see that the SQL right here. So this is, I'm just not using the automated right here. So that's why you can see that here, that DR. manually adding over keys right here. Okay? Now here I just click on goal, so closest score. Now you can see that here you have an error in the sequence that is, check the manual corresponding or fewer MariaDB. We here you can see that there is getting the ID right here, gets fine. So there is the ID right here. And I'll just take it again. So you can see this is this enjoy successfully inserted right here. You can see that with a timestamp as well. So our database queries are successfully works right here. Hopefully you understand now that how we can create these all, if you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture.
107. Explain and Execute Project: Hey guys, welcome to this lecture. In this lecture, I'm executing this project and explain every single functionality in this project that Howard's work. Firstly, you can see that isis is taught from the configurations of this project. Here. This is the local host. So you can see here when we are just executing this project right here. So here you will find that this is the local host file right here. Okay? Now after this, you can see that this is a root SQL user. Then after that, the password of it. And here this is the database name right here. Now here this is just a connection of the database right here. After this you can see here this is a SQL Mar, and here this connection is not created, so this command will be executed at that stage. You can see that now after this, we are just moving to the Download Plugins. Br downloading the plugins right here where you can see that this is the jQuery file and this is the GK bar rating system. So these are the two plug-ins. What atoms are touching with, it helps you understand now. So these are the only dq1 files and we are not totally consist on the front end on, in this course. We are working with a PHP only. So that's why I'm just not completely explaining all these odd. That's why simply leave it right here. Because your main focus is on work on the PHP files like this, index word PHP rating dot PHP than databases files right here and the contributions files right here. Now after that, I'm describing some of the back-end functionality in the rating files via you can select the rating. You can see here we are. You can select the rating so that will change its functionality. You can see here 35.53 and this is 4, and this is Kook 10. You can see here it is changing in addresses right here. Now. Firstly, I will said the database connections to it. Then after this you can see here, find the ID here, then this is a post id here. You can see that, that will get the post ID. You can see this is the post ID right here, you can see. So that's why there is showing me right here. Okay? Now after this you can see here this is select the counting of it, because this is a counting of the posters at the ADD, as you can see here, we have the one post as well, so it is counting one cost if ten posters. So you can see this is coating and set the rating, Do it. Now you can see that this is just a insert to command right here. And for this, if you want to update some of the rating right here. So similarly, you will find this, you can see. Kamara will be executed R dash did when I just click on w trading here. So that will simply update the rating of that into the database. Okay? Now after this, you can see here I'm just select this Kumar. So that will simply select the rating from the database and show me right here. You can see that. Okay. Now let's just see this is the index of the main page right here. Now I will show you the backend functionality of it that how the back-end files work right here. Now you can see that there is the index of the base. And the faster you can see that this is the rating system right here, and this is a configuration linked to the database. So you can see here these files, all files are shown to us like this, which is the interlinked to each other. So here you can see that this is just our aging system, what I'm writing here. And after this you can see here that this tile tags and some of the front-end pegs right here. So this is a style.css file or I'm just adding hair, then this is the link of that GQ plugin right here. And after this, this is a GQ file here, and this is a JavaScript files. Now you can see that this function is work like this entire function will take the average of it if I just remove this functions. So there is no ratings to or there will be no reading shows to us. That will be simply our dropdown menu and that will write 12345. Just see, you can see here this is just a script tag, so I am just removing this script tag from it. You can see that. And then here you can see that I'm just refreshing it. So drop-down list is she wants to us like this one. Okay. You can see here. So I just tell you that that will get the awesomeness tars right here that will show us there's tar of that. You can see that. Now here you can see that when I just do most hormone it. So you can see here it is changing is value like I just told you in CSS style, you can see here like and unlike Mozi or is a point right here. And you can see that here. So this is just our pointer. Now offer this. I just get when I just change some of the rating and the new reserve for the help of that URL that will get the backend reading file right here and I'm just linking it. So you can see that visually the post coast id rating values get the JSON file and the functions data rating, average rating of it. And then that will show me that rating right here. Okay? Now after this, firstly that rating will be she wants to meet with the help of this select command, which is select theory from the post, then that will get the SQL select right here from the configurations of SQL variable. And then this is a query which is my variable of the select command. Now after this, you can see that this is selecting id title content and the link you can see here. This is the link you can see if I just click on there. So this is opening link right here. Then this is the content and ideas nationals to me because id is always hide and this is the routing, what is she was to me and this is the average rating with the help of JavaScript. Okay? Now here you can see that this is also show me the average reading right now. If we didn't have any iterating through this option is shown as a dashed state. So that is simply show me the average rating right here. You can see that if I just write four, so that will show me the four because at the, at that stage, the only help the moderating. So that's why a decision we make this. Now after this, this is just a front-end designing. So I just told you when he just removed JavaScript files with this file at their stage is executing what on backstage, Beck and of dead star. So this select Kmart is using at that cases. Okay? You can see that, and we are also as tiling this right here. You can see that this is a style of action right here. You can see that this is a 15 pixels. This text here is 15 pixel size, letters pieces, one pixels. And this is justify as well. So you can see here this text is also justify here. So you understand now. Now you can see here if you are writing the content and the hair eyes right border of size two pixels and see if this court refresh this. So you can see here I just copy and pasted right here. So refresh this. And you can see that this is a two pixel here and there is showing me this organ. Now after this, you can see here, I'm going to the browser right here and now here, you can see that. Or I just go into the index file right here you can see clear both decide no air. This average rating is shown to me like here. And then after this, this PHP command is running there is getting the PHP ID first and then the average reading question will choose to me. And then here you can see that I just run this JavaScript combined. So this is a simple project. What we are seeing, more you'll work, we are creating on the rating system. Hopefully you understand now. If you're not understand, you can post any of the Kirsten regarding to this lecture or regarding to this course. Thanks for watching and see you in next lecture.