Category - PHP

PHP File Upload

PHP File Upload

By Irfan Iqbal In PHP Beginners, PHP Intermediate -

​In this post let us study how to upload a temporary file on the server.For which we have to  make a HTML form for uploading file . <html> <body> <form action="fileupload.php" method="post" enctype="multipart/form-data"> <label for=&...

PHP Message System

PHP Message System

By Irfan Iqbal In PHP Beginners -

In this post let us see how to send messages between two users for that we need to create a table with the following attributes. user_id email  message  At first let us store these attributes in the database . <?php // Create connection $con = mysqli_connect(&...

Cropping Images Using Jcrop In PHP

Cropping Images Using Jcrop In PHP

By Irfan Iqbal In PHP Beginners, PHP Intermediate -

In this post let us study how to crop images with Jquery and PHP using jcrop javascript library.At first you nees to download a jcrop javacript library from http://deepliquid.com/content/Jcrop_Download.html . After downloading copy the jcrop.js file into your root folder . Now l...

PHP Password Validation

PHP Password Validation

By Irfan Iqbal In PHP Beginners -

​ In this post let us study how to fetch email and password from database and validate it. At first we need to make a html file for requesting user to enter email and password . <html> <head> <title>password validation</title> </head> <body> <?p...

How To Insert Data Into Database in PHP.

How To Insert Data Into Database in PHP.

By Irfan Iqbal In PHP Beginners -

To insert data into database in php you need to follow the simple steps. 1.Create a table in phpmyadmin as shown in the image. After creating a table you need to create a HTMl file for requesting inputs by user. let us take email and password and store it in database. <html> <...

PHP Form Required

PHP Form Required

By Irfan Iqbal In PHP Beginners -

In this chapter let us discuss how to make required fields and display error messages when needed.let us first see what required fields are Required Fields: Required fields are the mandatory fiels denoted by "*".If an required fiels is left empty an error message will be displayed....