Skip to main content

Posts

Showing posts from December, 2019

Basic Insert, View, Edit, Delete and Update using PHP and MYSQL

Basic insert, view, edit, delete and update using PHP and Mysql                            Dear Friends  today i going to post one of old topic in php and  mysql, here i'm going to post Insert data through form, and fetch ,view the data from database, and also Edit, Delete and Update with detailed explanation.  i know mysql is depreciated, even most of the people are using mysql so now i'm going to use mysql and i'll update with pdo later, now i'm going to explain the basics of php mysql functions, how to insert, fetch, delete, update like all operations. and know we create empty files and named mention as.. 1.index.php 2.add.php 3.viewadd.php 4.edit.php 5.delete.php create database named as  1.index.php                    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xht...

ARRAY WORD SWAPING IN PHP and HTML

                                                             ARRAY WORD SWAPING IN PHP ARRAY:               An  array  is a special variable, which can hold more than one value at a time. If you  have a list of items   (a list of  names, for example), storing values , variable ...etc..., ISSET:               The isset() function is an inbuilt function in PHP which checks whether a variable is  set and is not NULL.  <?php if(isset($_GET['submit'])){  $from=$_GET['arrayfrom']; $to=$_GET['arrayto']; $array  =array('ravi','ravi2','ravi3','ravi4','ravi5','ravi6','ravi7','ravi8','ravi9','ravi10','ravi11'); $array = array_move_elem($array, $from, $to); // Move eleme...

Forgot Password Recovery (Reset) using PHP OOP and PDO Database

How to Get Forgot Password and Reset Password Using PHP OOP Concept and PDO for Database                                          Dear friends this tutorial demontrate to build an get forgot password and reset password .                                          This is a continue tutorial and previous tutorial is how to verify email to gmail account using php and pdo for database read before this tutorial   B y this link   :  How to send verify mail to gmail account using php    and then know we are create two empty php file named as 1.forgotpassword.php 2.resetpassword.php 1.forgotpassword.php <?php session_start(); require_once 'user.php'; $user = new USER(); if ($user->is_logged_in()!=...