1 / 12

PHP tutorials , php tutorials for beginners , tutorials for php

It is a general purpose programming language that can be used for multiple applications such as setting-up security for web information and manipulation.http://www.freeeasytutorials.com/

aimaq9a
Download Presentation

PHP tutorials , php tutorials for beginners , tutorials for php

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Welcome TO FreeEasyTutorials.com http://www.freeeasytutorials.com/

  2. PHP Tutorials What is PHP > PHP which stands for Hypertext Preprocessor is a web server-side scripting language designed for web development. > It is a general purpose programming language that can be used for multiple applications such as setting-up security for web information and manipulation of data within database more especially MySQL as we will see later in our tutorials and much more.> PHP helps in making work easy especially when using the inbuilt functions and connecting to a database. http://www.freeeasytutorials.com/

  3. Features of PHP > PHP is the most popular scripting language used for web development. > PHP is use to develop static as well as dynamic websites. > Interesting thing about PHP is it is free , open source (no need to buy license to create personal as well as commercial applications) and server-side scripting language(the code is always executed on the server and generated output is returned to the end user) > PHP is faster than other scripting language like ASP and JSP. > PHP provides two options to write your code I.e. you can write your HTML code and embed PHP code inside the HTML code or you can have option to write HTML code inside PHP code.We will see how to write them in upcoming tutorials. http://www.freeeasytutorials.com/

  4. Environment setup > In order to create and run PHP programs on your pc and before uploading them to hosts for worldwide connection, you need a local server. > A server will help to enhance communication between scripts thus enabling your application run smoothly. > For this purpose you need a software like Xampp or other options like Wampp but in this case we are going to use Xampp. http://www.freeeasytutorials.com/

  5. XAMPP installation As we already know In order to create and run PHP programs on your pc and before uploading them to hosts for worldwide connection, you need a local server. Follow the steps given below to install XAMPP on your local computer. Locate the downloaded programs i.e. XAMPP setup file : > The best directory to get you to your downloaded program is downloads/programs and look for the Xampp executable file. Double-click it or : Running program as an administrator : > Right click on the icon of the XAMPP program (executable file) and select the option Run as administrator from the drop down list. http://www.freeeasytutorials.com/

  6. PHP - Database > More often we would like to keep information about our users for later reference with our website, we thus resolve to using databases. > PHP helps in making work easy especially when using the inbuilt functions and connecting to a database. > With PHP, you can connect to database and perform the databases operations like insert,delete,update and many more. > MySQL is mainly use for simplicity in storing website data for example user-names and passwords, it is better to have a database for reference. > MySQL provides a better interface for which we can manipulate our data. > Before doing anything with MySql database, ensure you start MySql module in the Xampp control panel. > Our next topics will take us through the process of connecting and manipulating data in our database and the website. http://www.freeeasytutorials.com/

  7. PHP - MYSQL Connect > This part is very important and must be included in every file where we want to connect to database and retrieve or send data to a database. > The better version of doing it is to create a file with the connection functionality and include or require in this other files. > The function for creating the connection is; mysql_connect(server_name, username, password) ; > By default, the php admin provides that the username to be root and password is null i.e ‘ ’. > To start the PHP admin for database, click the admin button for MySql module in the xampp control panel. http://www.freeeasytutorials.com/

  8. PHP - MYSQL Update > Many at a times, users would like to update their information in your website such as the username, or email or the reset a password > We thus must therefore provide the with this functionality to change these things according to user needs. > To enhance this, we use the UPDATE query in PHP queries. > we can specify which data we want to update the data using the WHERE clause > For example let’s change the name Brianfrom previous example to John and email example@gmail.com to someone@gmail.com http://www.freeeasytutorials.com/

  9. PHP - MYSQL Select > The SELECT query allows us to get information from the database. > We use SELECT query to get all the information or specific information from the database. > To get all the information from database we use a *; i.e “SELECT * FROM table_name”. > To get information of a specific field we specify it in the query i.e let us select information from the field username i.e “SELECT username FROM table_name”. > This module also allows the selection of data for a specific object using the WHERE clause.> Let’s for example write a simple program to display all id, username and emails from our table http://www.freeeasytutorials.com/

  10. PHP - Sample Application > We have now come to the end of our tutorials. > Attached is a a sample application for a voting system in an institution.You can also use this voting system to do online shopping. Instruction on installing the online voting system1.Download the folder Dekut here. 2.Save the folder in htdocs as we do always in xampp folder in c disk. 3.Start both apache an mysql in xampp control panel. 4.Click admin for the mysQl option in xamp control pannel. http://www.freeeasytutorials.com/

  11. About FreeEasyTutorials.com FreeEasyTutorials.com (launched in 2017) is a website which has been created to provide very simple and easy programming tutorials and useful articles for beginners and professionals across the globe.The website also contains articles to learn how to earn online money. Mission New ideas, techniques and teachings are found every day. FreeEasyTutorials.com is always changing / adding it's tutorials and references to provide latest tutorials to our readers. We are working continuously to make FreeEasyTutorials.com more useful for every single moment you spend on the website. Best regards,FreeEasyTutorials.com http://www.freeeasytutorials.com/

  12. For More Information Please Visit Our Site http://www.freeeasytutorials.com/ http://www.freeeasytutorials.com/

More Related