Showing posts with label delete. Show all posts
Showing posts with label delete. Show all posts

Saturday, July 2, 2016

PHP Delete Data From MySQL with Confirmation

This tutorial shows you that how to Delete rows From MySql database table and How to set JavaScript Powered Confirmation Message, When you click  or press delete link a confirmation message will appear and make sure to delete the selected data or not from MySql Database table  , When You press yes on confirmed messege it will delete the data if not it will do nothing with the data.


Read more »

Wednesday, June 22, 2016

cPanel Subdomain Deletion Script Delete cPanel Subdomains In PHP

Designed to delete cPanel subdomains on cPanel hosting.

Input:

  • cPanel account username
  • cPanel account password
  • cPanel skin
  • list of subdomains to be deleted in the plain text file (for bunch subdomains delete)

Update program header with above settings and php script is ready to use.  

Usage: (you can use this script in either way)

  • Open script in browser and fill the form data
  • Pass all information via URL (form will not appear in this case)
    Example: subdel.php?cpaneluser=USER&cpanelpass=PASSWORD&domain=DOMAIN&subdomain=SUBDOMAIN
  • List all subdomains to be deleted in the plain text file
Note: If script cannot find file with subdomains and no parameters passed via URL then it will show input form.

Download Delete cPanel Subdomain PHP Script

Tuesday, June 21, 2016

Simple jQuery Add Update Delete with PHP and MySQL

In this tutorial we will cover a simple Insert, Update and Delete using jQuery, PHP and MySQL with PDO, well we have lot's of CRUD tutorials on this blog but we haven't jQuery CRUD tutorial yet, and few email requests i received from readers regarding jQuery Insert, Update, Delete with PHP MySQL, so here in this tutorial we will do it, using jQuery to perform such operations become easy and for the better user interface bootstrap is here i have used, let's start.
Simple jQuery Insert, Update, Delete with PHP & MySQL
Read more »

Friday, June 17, 2016

Multiple Insert Update Delete example using PHP MySQLi

This tutorial will guide you that how to perform multiple insert, update and delete operations using PHP & MySQLi, using this script you can update or delete multiple rows of MySQL database at a time on checkboxes selection with multiple insert, in my previous tutorial we have seen that how to Select / Deselect all checkboxes using jQuery, so using jQuery we can select all or multiple records from MySQL database and perform update or delete operations with the selected records, for better user interface i have used here again Bootstrap framework, we already have CRUD tutorials in this blog but i haven't cover this topic yet, so let's see the code.
Multiple Insert, Update, Delete (CRUD) using PHP & MySQLi
Read more »

Wednesday, June 15, 2016

Delete multiple records

Sometimes we may want to delete multiple records at once for more efficient work. We should provide checkbox for each records and users can select which records to delete.

In this example we should first create a database, a table and insert some data.
Type this sql script:
create database delsampel ;
use delsampel;
create table tabledelete (id int(5) primary key auto_increment, name varchar(50), position varchar(20), level int(2));
insert into tabledelete values(,Janet Jackson,Admin 2,8);
insert into tabledelete values(,Tommy Leo,Admin 1,5);
insert into tabledelete values(,John Connery,Admin 3,4);

then we should create 2 files
1. view.php
2. delete.php

below is the script for both files:
<?php
/*  view.php */
$host = "localhost";
$username = "root";
$password = "";
$database = "delsampel";
$connection = mysql_connect($host, $username, $password);
mysql_select_db($database, $connection) or die("MysQL Error");
$sql = mysql_query("select * from tabledelete");
?>
<html><body>
<form action="delete.php" method="POST">
<?php
echo "<table border=1>";
echo "<tr><th> </th><th>name</th><th>position</th><th>level</th></tr>";
while ($result = mysql_fetch_array($sql))
{
echo "<tr><td><input type=checkbox name=del[] id=del value=$result[id]></td><td>$result[name] </td><td> $result[position] </td><td> $result[level]</td></tr>";
}
?>
</table>
<input type="submit" name="justdel" value="Delete !!" id="justdel">
</form>
</body></html>

delete.php
<?php
/* delete.php */
$host = "localhost";
$username = "root";
$password = "";
$database = "delsampel";
$connection = mysql_connect($host, $username, $password);
mysql_select_db($database, $connection) or die("MysQL Error");
$id = $_POST[del];
$count = count($id); //counting how many rows (from checkbox) to delete
if($_POST[justdel])
{
for ($i=0; $i<$count; $i++)
{
$sql = mysql_query("delete from tabledelete where id=$id[$i]");
}
if ($sql)
{
print "Record successfully deleted<br>";
print "<a href=view.php>Click here to go back</a>";
}
}
?>

those example files can be downloaded here!! 2kb


Monday, May 30, 2016

PHP Data Update and Delete Using OOP

This tutorial is continuation of my previous tutorial Data Insert and Select using OOPs, In this tutorial i will show you that how to use PHP with OOPs concept for Data Update and Data Delete of MySql, it's so easy to learn, have a look.


Read more »

Friday, May 27, 2016

PHP Delete Data From MySQL

this tutorial help you to delete the inserted data from mysql using php that displayed in webpage, using php functions and mysql queries it's so easy to delete the the data from mysql database table
for this you must have Database in MySql

Read more »

Wednesday, May 25, 2016

PHP File Delete

You know how to create a file. You know how to open a file in an assortment of different ways. You even know how to read and write data from a file!

Now its time to learn how to destroy (delete) files. In PHP you delete files by calling the unlink function.

Thursday, May 12, 2016

Delete Uploaded Files From Folder using PHP and MySQL

This is my continuation post of how to upload and view files , In this post we will see that how to completely delete(remove) uploaded files from folder and MySql database table using PHP , you can delete any files pdf, mp3, image, video any...,when you upload any file it moves on particular folder, after delete  that database record data only deleted but files stay on same folder only it's not delete. So how to do let's see.


Read more »

Monday, January 25, 2016

Download Delete Skype History 1 2 1 Patch full version


link