Core PHP

how to update data in php using form

How to Update Data into Database using PHP

Today we will guide you How to Update Data into Database using PHP and MySQL.

index.php

<html>
<head>
<title>Update Data</title>
</head>
<body>
<form method="post" action="update.php" enctype="multipart/form-data">
<div class="name">
	<div class="name1"><h1>Student Name:</h1></div>
	<div class="name2"><input type="text" name="name" value="<?php echo $row['name']; ?>" /></div>
config.php file

How to Connect the Database in PHP

We will tell you how to connect the database in PHP. In any PHP file for insert/Delete/update/fetch data from Mysql database. we have to create a connection with the Mysql database. This connection will be the type of the database …

file upload in php mysql database

How to File Upload in Database using PHP

In this article, How to File Upload in Database using PHP.

Follow below Steps:

HTML Code:

file.php

<html>
<head>
<title>File Upload</title>
<form method="post" enctype="multipart/form-data" action="upload.php">
<input class="tbl2" type="file" name="f"><span class="txt1">(Type : .jp/* /* eg, .jpg, .gif, .png)</span>
<input class="butt2 bt" 
active and deactive in php

How to Make Active or Inactive in PHP With Mysql Database