Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

123

Tuesday, November 27, 2018

What is session in php? how can use the php session?

What is Session:- A php Session variable  is stored the single user information and are available all the page in the application.A PHP session solves this problem by allowing you to store single user informations on the server at a time.session information is the temporary store on the server,you are left the site then will be deleted.Session...

Thursday, November 22, 2018

How to delete data from database using MVC?

Delete data from database using MVC You can easily delete the records from database. In this below example we have used three php files 1. View.php <?php include("controller.php"); //delete the data  if(isset($_REQUEST['del_id']))  {    $del=$_REQUEST['del_id'];    $obj->delete($del);    header("location:view.php"); } ?> <html > <head> <title>Delete the data</title> </head> <body> <form...

How to update multiple table in MySQL?

Update multiple table with join in MYSQL <?php      $sql = "UPDATE table1                  JOIN table2 VCR ON  (table1.contact_id = table2.contact_id)                 SET table1.email_status = 1,                 table2.review_status = 1                 WHERE...

Image upload by ajax in php

AJAX Image upload in php It's very simple process to image upload by AJAX . It's working fine. You can easily upload the image by AJAX. Follow the below step. Code download  Click Here 1. Create a simple .php or .html file. We have created index.php file look below <html> <head>  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> </head> <body> <div><b>Upload...

Wednesday, November 21, 2018

How can edit the data in MySql using core php ?

form.php <?php mysql_connect("localhost","root",""); mysql_select_db("project"); //edit if (isset($_REQUEST['edit_id'])) { $eid=$_REQUEST['edit_id']; $select="select * from tbl_user where id='$eid' "; $ex=mysql_query($select); $rec=mysql_fetch_array($ex); } ?> <html> <head> <title>insert the data</title> </head> <body> <form method="post">     <table border="1"...

How can edit the data in MySql using core php ?

form.php <?php mysql_connect("localhost","root",""); mysql_select_db("project"); //edit if (isset($_REQUEST['edit_id'])) { $eid=$_REQUEST['edit_id']; $select="select * from tbl_user where id='$eid' "; $ex=mysql_query($select); $rec=mysql_fetch_array($ex); } ?> <html> <head> <title>insert the data</title> </head> <body> <form method="post">     <table border="1"...

Delete data using core php ?

<?php if(isset($_REQUEST['del_id'])) {    $del=$_REQUEST['del_id'];     $de="delete from user where uid='$del'";     $ex=mysql_query($del);     header("location:view.php"); } ?>< html>< body><form method="post" name="form1" >< table width="200" align="center" class="frm_tbl">   <tr>     <td>Uid</td>    ...

How can fetch the records in MySQL using php?

Create  a  form.php  for the inserting data & view.php for the fetching data in the  Data base Fetching Records  in the database using Mysql_fetch_array ( ) Function. Select Command use for the fetching data in database.        make a form.php for inserting data & below view.php for fetch the records <?php mysql_connect("localhost","root",""); mysql_select_db("project"); //insert...

How can insert the data in mysql using php?

step 1:- Firstly create a database name & secondly create a table in MySQL. step 2:-After that create a table structure eg. Column Name1 , Coulmn Name2 , Coulmn NameN... <?php mysql_connect("localhost","root",""); mysql_select_db("project"); //insert data in database using submit button request if (isset($_REQUEST['submit'])) { $n=$_REQUEST['name']; $p=$_REQUEST['pass']; $g=$_REQUEST['gender']; $h=$_REQUEST['chk']; ...

Monday, November 12, 2018

PHP Error Types - And their Differences

Notices : It will be shown in below condition like if we will try to access a variable which is not defined yet. it will not stop script execution. Warning : It will be shown while using include(), it will not able to find file for include. It will not stop script execution. Fatal Error : It will be shown while using require(), it will not able to find...

Saturday, November 3, 2018

MySql Quaries

You can create and populate the example table with these statements: CREATE TABLE shop ( article INT(4) UNSIGNED ZEROFILL DEFAULT '0000' NOT NULL, dealer CHAR(20) DEFAULT '' NOT NULL, price DOUBLE(16,2) DEFAULT '0.00' NOT NULL, PRIMARY KEY(article, dealer)); INSERT INTO shop VALUES (1,'A',3.45),(1,'B',3.99),(2,'A',10.99),(3,'B',1.45), ...