Delete query in Mysqli

Nearly every site that you visit nowadays has some sort of database storage in place, many sites opt to use MySQL databases when using PHP. However, many people haven’t yet taken the step to interacting with databases properly in PHP. Here we guide you through what you should be doing – using PHP’s MySQLi class – with a hat-tip to the one way that you definitely shouldn’t be doing it.

 

 

$db variable require which we used in DB connection. e.g.

 

DB Connection:

 

Unlink/Delete uploaded file from folder:

 

Delete Query:

 

 

Source: http://codular.com/php-mysqli

Leave a Reply

Your email address will not be published. Required fields are marked *